@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard-dynamic-subset.css");

/* 도움말(/support)과 개인정보 보호(/security) 공통 */
:root {
  --ink: #0b0b0d;
  --ink-soft: #55555c;
  --muted: rgba(0, 0, 0, 0.45);
  --line: rgba(0, 0, 0, 0.08);
  --panel: #f4f4f6;
  --night: #000000;
  --night-card: #141416;
  --night-line: rgba(255, 255, 255, 0.12);
  --night-text: rgba(255, 255, 255, 0.64);
  --accent: #f2557f;
  --column: 1080px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR",
    "Segoe UI", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 132px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
  overflow-x: clip;
}

.page-light {
  background: #fff;
  color: var(--ink);
}

.page-dark {
  background: var(--night);
  color: #fff;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 10px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.eyebrow {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

/* ---------- 알약 버튼 ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.25s var(--ease-spring);
}

.pill:hover {
  transform: translateY(-2px);
}

.pill:active {
  transform: scale(0.96);
}

.pill-dark {
  background: var(--ink);
  color: #fff;
}

.pill-light {
  background: #fff;
  color: var(--ink);
}

.pill-outline {
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
}

/* ---------- 사이트 머리글 ---------- */

.site-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
  padding: env(safe-area-inset-top) var(--gutter) 0;
  box-sizing: content-box;
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
}

.page-light .site-bar {
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 1px 0 var(--line);
}

.page-dark .site-bar {
  background: rgba(0, 0, 0, 0.62);
  box-shadow: 0 1px 0 var(--night-line);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.site-brand img {
  border-radius: 8px;
}

.site-nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 500;
}

.site-nav a {
  position: relative;
  text-decoration: none;
  white-space: nowrap;
  opacity: 0.72;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  opacity: 1;
}

.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.site-cta {
  min-height: 38px;
  padding: 0 16px;
  font-size: 14px;
}

.page-dark .site-cta {
  background: #fff;
  color: var(--ink);
}

/* ---------- 바닥글 ---------- */

.site-footer {
  padding: 28px var(--gutter) calc(40px + env(safe-area-inset-bottom));
}

.page-light .site-footer {
  border-top: 1px solid var(--line);
}

.page-dark .site-footer {
  border-top: 1px solid var(--night-line);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  max-width: var(--column);
  margin: 0 auto;
  font-size: 13px;
}

.site-footer a {
  text-decoration: none;
  opacity: 0.6;
}

.site-footer a:hover,
.site-footer a[aria-current="page"] {
  opacity: 1;
}

/* ---------- 등장 효과 ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: var(--delay, 0ms);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ================= 도움말 ================= */

.support {
  padding: 0 var(--gutter);
}

.support-hero {
  display: grid;
  justify-items: center;
  gap: 14px;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(56px, 9vw, 104px) 0 clamp(32px, 5vw, 48px);
  text-align: center;
}

.support-hero h1 {
  font-size: clamp(32px, 4.6vw, 48px);
}

.support-lead {
  color: var(--ink-soft);
}

.support-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(100%, 520px);
  min-height: 52px;
  margin-top: 12px;
  padding: 0 8px 0 18px;
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  transition: box-shadow 0.25s, background-color 0.25s;
}

.support-search[hidden] {
  display: none;
}

.support-search:focus-within {
  background: #fff;
  box-shadow: 0 0 0 2px var(--ink), 0 10px 30px -18px rgba(0, 0, 0, 0.4);
}

.support-search input {
  flex: 1;
  min-width: 0;
  height: 48px;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  outline: none;
}

.support-search input::-webkit-search-cancel-button {
  display: none;
}

.support-clear {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  color: var(--ink-soft);
  cursor: pointer;
}

.support-clear[hidden] {
  display: none;
}

.support-count {
  min-height: 1.5em;
  font-size: 13px;
  color: var(--muted);
}

.support-body {
  max-width: var(--column);
  margin: 0 auto;
}

/* 주제 카드 격자(빌드가 nav.support-nav > a를 넣는다) */
.support-nav {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 12px;
  margin-bottom: clamp(48px, 7vw, 80px);
}

.support-nav[hidden] {
  display: none;
}

.support-nav a {
  display: grid;
  align-content: start;
  gap: 4px;
  min-height: 132px;
  padding: 22px 22px 20px;
  border-radius: 24px;
  background: var(--panel);
  font-weight: 650;
  text-decoration: none;
  transition: transform 0.35s var(--ease-out), background-color 0.25s;
}

.support-nav a:hover {
  transform: translateY(-3px);
  background: #ececf0;
}

.support-nav a::before {
  content: "";
  display: block;
  width: 26px;
  height: 26px;
  margin-bottom: 14px;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

.support-nav-title {
  font-size: 17px;
  font-weight: 650;
}

.support-nav-desc {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-soft);
}

.support-nav-count {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

.support-nav-count::after {
  content: " ›";
}

/* 주제별 아이콘(선 아이콘, 평면) */
.support-nav a {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M9.5 9.5a2.5 2.5 0 1 1 3.5 2.3c-.6.3-1 .8-1 1.5V14M12 17h.01'/%3E%3C/svg%3E");
}

.support-nav a[href="#account"] {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12a8 8 0 0 1 13.7-5.6M20 12a8 8 0 0 1-13.7 5.6M17.7 3v3.4h-3.4M6.3 21v-3.4h3.4'/%3E%3C/svg%3E");
}

.support-nav a[href="#recording"] {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20h4L19 9a2.8 2.8 0 0 0-4-4L4 16z'/%3E%3Cpath d='M13.5 6.5l4 4'/%3E%3C/svg%3E");
}

.support-nav a[href="#budget"] {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5' width='17' height='15' rx='3'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4'/%3E%3C/svg%3E");
}

.support-nav a[href="#backup"] {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11M7.5 10.5L12 15l4.5-4.5'/%3E%3Cpath d='M4 17v2a1.5 1.5 0 0 0 1.5 1.5h13A1.5 1.5 0 0 0 20 19v-2'/%3E%3C/svg%3E");
}

.support-nav a[href="#donworry"] {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 18.5V7a3 3 0 0 1 3-3h8a3 3 0 0 1 3 3v6a3 3 0 0 1-3 3H8.5z'/%3E%3Cpath d='M9 9.5h6M9 12.5h4'/%3E%3C/svg%3E");
}

.support-nav a[href="#sharing"] {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='9' r='3.2'/%3E%3Ccircle cx='17' cy='10' r='2.5'/%3E%3Cpath d='M3.5 19a5.5 5.5 0 0 1 11 0M14.5 15.2A4.5 4.5 0 0 1 21 19'/%3E%3C/svg%3E");
}

.support-nav a[href="#appearance"] {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5a8.5 8.5 0 1 0 0 17c1.2 0 1.7-.8 1.7-1.6 0-1.4-1.1-1.6-1.1-2.7 0-.9.7-1.4 1.6-1.4h1.7a4.6 4.6 0 0 0 4.6-4.6C20.5 6.6 16.7 3.5 12 3.5z'/%3E%3Ccircle cx='8' cy='11' r='1'/%3E%3Ccircle cx='11' cy='7.5' r='1'/%3E%3Ccircle cx='15.5' cy='8.5' r='1'/%3E%3C/svg%3E");
}

.support-nav a[href="#pro"] {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5l2.6 5.3 5.9.9-4.3 4.1 1 5.8-5.2-2.7-5.2 2.7 1-5.8-4.3-4.1 5.9-.9z'/%3E%3C/svg%3E");
}

/* 주제별 질문 목록 */
/* 빌드 구조: section > header + details* (질문이 머리글의 형제로 온다) */
.support-category {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  align-content: start;
  column-gap: clamp(24px, 5vw, 64px);
  padding: clamp(32px, 5vw, 48px) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 100px;
}

.support-category[hidden] {
  display: none;
}

.support-category > header {
  grid-column: 1;
  grid-row: 1 / span 40;
  align-self: start;
  position: sticky;
  top: 100px;
}

.support-category > :not(header) {
  grid-column: 2;
}

.support-category h2 {
  font-size: clamp(22px, 2.4vw, 26px);
}

.support-category .description {
  margin-top: 6px;
  font-size: 15px;
  color: var(--ink-soft);
}

.support-faq {
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 110px;
}

.support-faq:first-of-type {
  border-top: 1px solid var(--line);
}

.support-faq[hidden] {
  display: none;
}

.support-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 14px 4px;
  font-size: 16px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
  transition: color 0.2s;
}

.support-faq summary::-webkit-details-marker {
  display: none;
}

.support-faq summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  margin-right: 4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  opacity: 0.5;
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease-out);
}

.support-faq[open] summary::after {
  transform: rotate(-135deg);
}

.support-faq summary:hover {
  color: var(--accent);
}

.support-faq .faq-answer {
  padding: 0 4px 22px;
}

.support-faq[open] .faq-answer {
  animation: open-down 0.35s var(--ease-out);
}

.support-faq .faq-answer p {
  color: var(--ink-soft);
}

.support-faq .faq-answer p + p {
  margin-top: 10px;
}

/* 링크로 들어와 강조된 질문 */
.support-faq.is-target summary {
  color: var(--accent);
}

@keyframes open-down {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

mark {
  border-radius: 4px;
  background: #ffe1ea;
  color: inherit;
}

.support-empty {
  padding: 32px 0;
  text-align: center;
  color: var(--ink-soft);
}

.support-contact {
  display: grid;
  justify-items: center;
  gap: 20px;
  max-width: var(--column);
  margin: clamp(48px, 7vw, 80px) auto clamp(64px, 9vw, 112px);
  padding: clamp(40px, 6vw, 64px) var(--gutter);
  border-radius: 32px;
  background: var(--panel);
  text-align: center;
}

.support-contact h2 {
  font-size: clamp(22px, 2.6vw, 28px);
}

.contact-options {
  width: 100%;
  max-width: 560px;
}

.contact-options summary {
  cursor: pointer;
  list-style: none;
}

.contact-options summary::-webkit-details-marker {
  display: none;
}

.contact-panel {
  display: grid;
  gap: 12px;
  margin-top: 24px;
  text-align: left;
}

.contact-panel label,
.contact-hint,
.contact-status {
  color: var(--ink-soft);
  font-size: 14px;
}

.contact-panel input {
  min-width: 0;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  color: var(--ink);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.contact-actions .pill {
  border: 1px solid var(--line);
  font-family: inherit;
  cursor: pointer;
  white-space: normal;
}

.contact-actions [hidden] {
  display: none;
}

/* ================= 개인정보 보호 ================= */

.subnav {
  position: sticky;
  top: calc(68px + env(safe-area-inset-top));
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 52px;
  padding: 0 var(--gutter);
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 var(--night-line);
}

.subnav strong {
  font-size: 15px;
  white-space: nowrap;
}

.subnav nav {
  display: flex;
  gap: 18px;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
  font-size: 13px;
}

.subnav nav::-webkit-scrollbar {
  display: none;
}

.subnav nav a {
  white-space: nowrap;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s;
}

.subnav nav a:hover,
.subnav nav a.is-active {
  color: #fff;
}

.security {
  padding: 0 var(--gutter);
}

.security-hero {
  display: grid;
  justify-items: center;
  gap: 22px;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(64px, 10vw, 128px) 0 clamp(56px, 8vw, 96px);
  text-align: center;
  scroll-margin-top: 140px;
}

.security-hero img {
  width: clamp(120px, 16vw, 176px);
  animation: lock-in 1.1s var(--ease-spring) both;
}

@keyframes lock-in {
  from { opacity: 0; transform: translateY(24px) scale(0.8) rotate(-8deg); }
  to { opacity: 1; transform: none; }
}

.security-hero h1 {
  font-size: clamp(32px, 4.8vw, 54px);
}

.security-hero .rule {
  width: 28px;
  height: 2px;
  background: currentColor;
}

.security-hero p {
  max-width: 600px;
  font-size: clamp(16px, 1.6vw, 18px);
  color: var(--night-text);
}

.security-section {
  max-width: var(--column);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) 0;
  border-top: 1px solid var(--night-line);
  scroll-margin-top: 130px;
}

.security-section > h2 {
  font-size: clamp(28px, 3.6vw, 40px);
}

.security-section > .section-lead {
  max-width: 640px;
  margin-top: 14px;
  color: var(--night-text);
}

.principles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 56px) clamp(24px, 5vw, 72px);
  margin-top: clamp(32px, 5vw, 48px);
}

.principle {
  display: grid;
  gap: 8px;
}

.principle .glyph {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.principle h3 {
  font-size: 21px;
}

.principle p {
  color: var(--night-text);
}

.who-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: clamp(32px, 5vw, 48px);
}

.who-card {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 24px 22px 26px;
  border-radius: 24px;
  background: var(--night-card);
  transition: transform 0.4s var(--ease-out), background-color 0.3s;
}

.who-card:hover {
  transform: translateY(-4px);
  background: #1b1b1e;
}

.who-card .who-place {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
}

.who-card h3 {
  font-size: 18px;
}

.who-card p {
  font-size: 14.5px;
  color: var(--night-text);
}

.text-link {
  display: inline-flex;
  gap: 4px;
  margin-top: 28px;
  font-size: 15px;
  font-weight: 600;
  color: #9ec5ff;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.facts {
  display: grid;
  gap: 0;
  margin: clamp(28px, 4vw, 40px) 0 0;
  padding: 0;
  list-style: none;
}

.facts li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 8px 24px;
  padding: 20px 0;
  border-top: 1px solid var(--night-line);
}

.facts li:last-child {
  border-bottom: 1px solid var(--night-line);
}

.facts strong {
  font-weight: 600;
}

.facts span {
  color: var(--night-text);
}

.security-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

/* ---------- 반응형 ---------- */

@media (max-width: 860px) {
  /* 좁은 화면에서는 도움말 링크만 남긴다. */
  .site-nav {
    gap: 0;
  }

  .site-nav a:not([href="/support"]) {
    display: none;
  }

  .site-bar {
    gap: 16px;
  }

  .support-category {
    grid-template-columns: 1fr;
  }

  .support-category > header {
    grid-row: auto;
    position: static;
    margin-bottom: 16px;
  }

  .support-category > :not(header) {
    grid-column: 1;
  }

  .who-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 319px) {
  .site-nav {
    display: none;
  }
}

@media (max-width: 560px) {
  .site-bar {
    height: 60px;
  }

  .subnav {
    top: calc(60px + env(safe-area-inset-top));
  }

  .subnav strong {
    display: none;
  }

  .subnav nav {
    margin-left: 0;
  }

  .principles,
  .who-grid {
    grid-template-columns: 1fr;
  }

  .facts li {
    grid-template-columns: 1fr;
  }

  .support-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .support-nav a {
    min-height: 0;
    padding: 18px 16px 16px;
    border-radius: 20px;
  }

  .support-nav a::before {
    margin-bottom: 10px;
  }

  .support-nav-title {
    font-size: 15px;
  }

  .support-nav-desc {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
