/* 오토DM 공개 사이트.
   색 규칙: 거의 무채색으로 두고, 연두(--accent)는 주 버튼·"오토DM" 배지·보낸 메시지 같은 '면'에만 쓴다.
            연두 위 글자는 항상 진한 색(--on-accent). 링크 강조는 --accent-ink 하나.
   모양 규칙: 버튼·칩은 알약(999px), 카드·패널은 20px, 입력칸은 12px.
   깊이 규칙: 카드는 그림자 없이 1px 헤어라인. 그림자는 첫 화면의 작동 방식 무대 하나에만 쓴다. */
:root {
  --bg: #FAFAF8;
  --bg-alt: #F2F3EF;
  --surface: #FFFFFF;
  --ink: #111410;
  --muted: #62665E;
  --line: rgb(17 20 16 / .09);
  --line-strong: rgb(17 20 16 / .18);
  --accent: #97D423;
  --accent-hover: #A4DD38;
  --on-accent: #111410;
  --accent-ink: #00707D;
  --danger: #C8321E;
  --on-danger: #FFFFFF;
  /* 어두운 면: 첫 화면 예시 기기와 마지막 구역 */
  --dark: #111410;
  --dark-raised: #1B1F19;
  --dark-line: rgb(255 255 255 / .1);
  --on-dark: #F3F5EF;
  --on-dark-muted: #A2A89D;
  --device-shadow: 0 1px 2px rgb(17 20 16 / .08), 0 28px 60px -22px rgb(17 20 16 / .38);
  --radius-card: 20px;
  --radius-input: 12px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --nav-h: 68px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B0D0A;
    --bg-alt: #11140F;
    --surface: #141712;
    --ink: #F1F3ED;
    --muted: #9BA197;
    --line: rgb(255 255 255 / .09);
    --line-strong: rgb(255 255 255 / .2);
    --accent-ink: #97D423;
    --danger: #FF8A70;
    --on-danger: #1B0A06;
    --dark: #151913;
    --dark-raised: #1E231B;
    --device-shadow: 0 0 0 1px rgb(255 255 255 / .08), 0 30px 70px -24px rgb(0 0 0 / .8);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.wrap { width: min(100% - 40px, 1140px); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; z-index: 30; }
.skip:focus { top: 12px; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 26px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 16.5px; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s;
}
.btn:active { transform: scale(.975); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
/* 삭제·탈퇴처럼 되돌리기 어려운 동작의 확인 버튼에만 쓴다 */
.btn-danger { background: var(--danger); color: var(--on-danger); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
@media (hover: hover) {
  .btn-primary:hover { background: var(--accent-hover); }
  .btn-ghost:hover { border-color: var(--ink); }
}
.btn-text { background: none; border: 0; padding: 6px 0; font-size: 14.5px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.btn-text:hover { color: var(--ink); }

/* ---------- 상단 메뉴 ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid var(--line); }
.nav-row { height: var(--nav-h); display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -.03em; }
.brand-mark { width: 34px; height: 34px; display: block; flex-shrink: 0; }
.nav-links { display: flex; gap: 30px; margin-left: auto; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { flex-shrink: 0; }
.page-login .nav-cta, .page-app .nav-cta, .page-connect .nav-cta { display: none; }
@media (max-width: 767px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
}

/* ---------- 첫 화면: 가운데 정렬한 문장, 그 아래 넓은 무대 ---------- */
.hero { padding: clamp(56px, 8vw, 112px) 0 clamp(56px, 7vw, 96px); }
.hero-head { display: grid; justify-items: center; text-align: center; }
.hero h1 { font-size: clamp(38px, 6.2vw, 76px); line-height: 1.1; letter-spacing: -.038em; font-weight: 700; }
.hero h1 .line { display: block; overflow: hidden; padding-block: .06em; margin-block: -.06em; }
.hero h1 .line > span { display: block; }
.lead { margin-top: 26px; font-size: clamp(17px, 1.5vw, 19.5px); color: var(--muted); max-width: 30em; text-wrap: balance; }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* 작동 방식 무대: 페이지에서 그림자를 쓰는 유일한 면.
   왼쪽 단계가 차례로 넘어가고(막대가 차오르면 다음 단계), 오른쪽 대화가 그 단계까지 채워진다. */
.stage { margin-top: clamp(48px, 6vw, 80px); background: var(--dark); color: var(--on-dark); border-radius: 32px; padding: clamp(26px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: clamp(32px, 6vw, 88px); align-items: center; box-shadow: var(--device-shadow); scroll-margin-top: calc(var(--nav-h) + 24px); }
.stage h2 { font-size: clamp(26px, 3.2vw, 40px); line-height: 1.2; letter-spacing: -.03em; font-weight: 700; }
.stage :focus-visible, .closing-box :focus-visible { outline-color: var(--on-dark); }
.steps { margin-top: clamp(24px, 3vw, 40px); display: grid; }
.step { width: 100%; display: grid; grid-template-columns: 2px minmax(0, 1fr); column-gap: 20px; padding: 0; background: none; border: 0; text-align: left; cursor: pointer; color: var(--on-dark); }
.step-bar { --fill-from: scaleY(0); background: var(--dark-line); position: relative; overflow: hidden; }
.step-bar::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: var(--fill-from); transform-origin: left top; }
.step.is-done .step-bar::after, .step.is-active .step-bar::after { transform: none; }
.step strong { display: block; padding-top: 14px; font-size: 17.5px; font-weight: 600; letter-spacing: -.015em; line-height: 1.4; }
.step-desc { display: grid; grid-template-rows: 1fr; padding-bottom: 14px; }
.step-desc > span { overflow: hidden; min-height: 0; }
.step-text { display: block; padding-top: 6px; font-size: 15px; line-height: 1.55; color: var(--on-dark-muted); }
/* 스크립트가 켜지면 고른 단계의 설명만 펼친다. 설명 높이를 두 줄로 맞춰 단계가 바뀌어도 무대 높이가 그대로다 */
.js .step { color: var(--on-dark-muted); }
.js .step.is-active, .js .step:hover { color: var(--on-dark); }
.js .step-desc { grid-template-rows: 0fr; opacity: 0; }
.js .step.is-active .step-desc { grid-template-rows: 1fr; opacity: 1; }
.js .step-text { min-height: calc(1.55em * 2 + 6px); }

.demo { width: 100%; max-width: 380px; justify-self: end; }
.phone { background: var(--dark-raised); border: 1px solid var(--dark-line); border-radius: 28px; padding: 18px; }
.phone-head { display: flex; align-items: center; gap: 12px; padding: 4px 6px 16px; border-bottom: 1px solid var(--dark-line); }
.phone-head strong { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; }
.phone-head small { color: var(--on-dark-muted); font-size: 12.5px; }
.avatar { width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: rgb(255 255 255 / .07); border: 1px solid var(--dark-line); font-weight: 700; font-size: 15px; }
.avatar.sm { width: 28px; height: 28px; font-size: 12px; }
img.avatar { object-fit: cover; }
.thread { display: grid; gap: 10px; padding: 16px 4px 6px; align-content: start; }
.thread .off { visibility: hidden; }
.row { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--on-dark-muted); }
.row p { padding-top: 3px; }
.row.reply { margin-left: 26px; }
.row b { margin-right: 4px; color: var(--on-dark); font-weight: 600; }
mark { background: rgb(151 212 35 / .2); color: var(--accent); padding: 1px 6px; border-radius: 6px; font-weight: 600; }
.thread-label { margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--dark-line); text-align: center; font-size: 12px; color: var(--on-dark-muted); }
.bubble { justify-self: start; max-width: 86%; background: rgb(255 255 255 / .06); border: 1px solid var(--dark-line); border-radius: 18px 18px 18px 6px; padding: 11px 13px; font-size: 14px; line-height: 1.5; display: grid; gap: 10px; }
.bubble.mine { justify-self: end; background: var(--accent); color: var(--on-accent); border-color: transparent; border-radius: 18px 18px 6px 18px; font-weight: 600; }
.bubble-btn { display: flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--dark-line); border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: 13.5px; }
.bubble-btn.link { color: var(--accent); }
/* DM에 담긴 자료 이미지: 글 옆에 작게 둬서 대화 높이를 거의 늘리지 않는다 */
.bubble-media { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 11px; align-items: center; }
.bubble-media img { width: 52px; height: 52px; border-radius: var(--radius-input); object-fit: cover; }
.demo figcaption { margin-top: 14px; text-align: center; font-size: 13px; color: var(--on-dark-muted); }
@media (max-width: 899px) {
  .stage { grid-template-columns: 1fr; border-radius: 26px; gap: 22px; }
  .demo { justify-self: center; }
  /* 좁은 화면: 단계가 스토리 진행 막대처럼 가로로 놓이고, 고른 단계의 설명만 그 아래에 보인다.
     그래야 막대·설명·대화가 한 화면에 함께 들어온다. (설명 자리는 세 줄까지 미리 잡아 둔다) */
  .js .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; position: relative; padding-bottom: 104px; }
  .js .step { display: block; padding: 14px 0; }
  .js .step-bar { --fill-from: scaleX(0); display: block; height: 3px; border-radius: 3px; }
  .js .step-body { position: absolute; left: 0; right: 0; top: 36px; opacity: 0; pointer-events: none; }
  .js .step.is-active .step-body { opacity: 1; }
  .js .step strong { padding-top: 0; }
  .js .step-desc, .js .step.is-active .step-desc { grid-template-rows: 1fr; opacity: 1; padding-bottom: 0; }
  .js .step-text { min-height: 0; }
}
@media (prefers-color-scheme: dark) { .stage, .closing-box { border: 1px solid var(--line); } }

/* ---------- 한눈에 보기: 선으로 나눈 세 가지 사실 ---------- */
.facts-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.facts-row li { padding: clamp(24px, 3vw, 36px) clamp(16px, 3vw, 40px); display: grid; gap: 4px; }
.facts-row li:first-child { padding-left: 0; }
.facts-row li + li { border-left: 1px solid var(--line); }
.facts-row strong { font-size: clamp(24px, 2.8vw, 36px); font-weight: 700; letter-spacing: -.03em; line-height: 1.2; }
.facts-row span { font-size: 15px; color: var(--muted); }
@media (max-width: 767px) {
  .facts-row { grid-template-columns: 1fr; }
  .facts-row li, .facts-row li:first-child { padding: 18px 0; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
  .facts-row li + li { border-left: 0; border-top: 1px solid var(--line); }
  .facts-row strong { font-size: 21px; }
}

/* ---------- 공통 구역: 제목은 왼쪽, 설명은 오른쪽 아래에 맞춘다 ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.2; letter-spacing: -.03em; font-weight: 700; max-width: 17em; text-wrap: balance; }
.section h3 { font-size: 18px; line-height: 1.4; letter-spacing: -.015em; font-weight: 600; }
.section p { color: var(--muted); }
.section .eyebrow { font-size: 13.5px; font-weight: 600; color: var(--muted); margin-bottom: 14px; }
.section-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 20px clamp(24px, 6vw, 96px); align-items: end; }
.section-lead { max-width: 33em; font-size: 17.5px; }
@media (max-width: 899px) { .section-head { grid-template-columns: 1fr; } }

/* ---------- 활용 예시: 실사 사진 위에 댓글 키워드와 설명을 얹는다 ----------
   사진 위 글자는 화면 모드와 상관없이 항상 밝은 색이고, 아래쪽 어두운 그라데이션이 대비를 지킨다. */
.cases-grid { margin-top: clamp(36px, 5vw, 56px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.case { position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 4 / 5; border-radius: var(--radius-card); background: var(--dark); color: var(--on-dark); }
.case > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.case::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(17 20 16 / .86) 0%, rgb(17 20 16 / .4) 34%, rgb(17 20 16 / 0) 60%); }
.case-key { position: absolute; left: 16px; top: 16px; display: inline-flex; align-items: center; gap: 7px; background: rgb(17 20 16 / .8); border-radius: 999px; padding: 6px 8px 6px 12px; font-size: 13.5px; font-weight: 500; }
.case-key i { font-size: 16px; }
.case-text { position: absolute; inset: auto 0 0; padding: clamp(18px, 2.2vw, 26px); display: grid; gap: 4px; }
.case .case-text h3 { font-size: clamp(19px, 1.9vw, 23px); font-weight: 700; letter-spacing: -.02em; }
.case .case-text p { font-size: 15px; color: rgb(243 245 239 / .84); }
@media (max-width: 767px) {
  /* 좁은 화면: 세로로 쌓지 않고 옆으로 넘겨 본다 */
  .cases-grid { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -20px; padding-inline: 20px; scroll-padding-inline: 20px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .cases-grid::-webkit-scrollbar { display: none; }
  .case { flex: 0 0 min(78%, 320px); scroll-snap-align: start; }
}

/* ---------- 기능: 위에 큰 칸 둘(예시 포함), 아래에 작은 칸 셋 ---------- */
.bento { margin-top: clamp(36px, 5vw, 56px); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.cell { grid-column: span 2; border-radius: var(--radius-card); padding: clamp(24px, 3vw, 32px); display: grid; gap: 8px; align-content: start; background: var(--surface); border: 1px solid var(--line); }
.cell p { font-size: 15.5px; }
.cell-icon { font-size: 26px; margin-bottom: 14px; }
.cell-wide { grid-column: span 3; min-height: 340px; align-content: space-between; gap: 32px; }
.cell-wide h3 { font-size: clamp(21px, 2.1vw, 26px); letter-spacing: -.025em; font-weight: 700; }
.cell-wide p { max-width: 24em; margin-top: 8px; }
.outcomes, .chips { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 16px; }
.outcomes { display: grid; }
.outcomes li { display: flex; gap: 12px; align-items: center; padding: 15px 18px; font-size: 15px; color: var(--muted); }
.outcomes li + li { border-top: 1px solid var(--line); }
.outcomes i { font-size: 22px; color: var(--ink); flex-shrink: 0; }
.outcomes b { display: block; color: var(--ink); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 18px; }
.chips li { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 500; color: var(--muted); }
@media (max-width: 899px) {
  .bento { grid-template-columns: 1fr; }
  .cell, .cell-wide { grid-column: auto; min-height: 0; }
}

/* ---------- 요금: 비교표 ---------- */
.pricing { background: var(--bg-alt); border-block: 1px solid var(--line); }
.compare { margin-top: clamp(32px, 4vw, 52px); display: grid; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); overflow: hidden; }
.compare-row { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr) minmax(0, 1.2fr); border-top: 1px solid var(--line); }
.compare-row:first-child { border-top: 0; }
.compare-row > span { padding: 17px 24px; font-size: 15.5px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.compare-row > [role="rowheader"] { font-weight: 600; color: var(--ink); }
.compare-row > .ours { color: var(--ink); font-weight: 600; border-inline: 1px solid var(--line); }
.compare-row > .ours i { font-size: 19px; flex-shrink: 0; }
.compare-head > span { font-size: 13.5px; font-weight: 600; color: var(--muted); padding-block: 14px; }
.badge { display: inline-flex; align-items: center; background: var(--accent); color: var(--on-accent); border-radius: 999px; padding: 3px 11px; font-size: 13px; font-weight: 700; }
@media (max-width: 767px) {
  .compare-head { display: none; }
  .compare-row { grid-template-columns: 1fr; padding: 18px 20px; gap: 8px; }
  .compare-row > span { padding: 0; }
  .compare-row > .ours { border: 0; }
  .compare-row > [role="cell"] { display: grid; gap: 2px; }
  .compare-row > [role="cell"]::before { content: attr(data-label); font-size: 12.5px; font-weight: 600; color: var(--muted); }
  .compare-row > .ours i { display: none; }
}

/* ---------- 신뢰: 제목 아래 선으로 시작하는 세 칸 ---------- */
.trust-list { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); }
.trust-list li { padding-top: 26px; border-top: 1px solid var(--line-strong); }
.trust-list i { display: block; font-size: 26px; margin-bottom: 18px; }
.trust-list p { margin-top: 6px; font-size: 15.5px; }
.trust-list a, .faq a, .doc a, .form-note a, .check a { color: var(--accent-ink); font-weight: 600; text-underline-offset: 3px; }
@media (max-width: 899px) {
  .trust-list { grid-template-columns: 1fr; }
  .trust-list li { padding: 22px 0; border-top-color: var(--line); display: grid; grid-template-columns: 26px 1fr; column-gap: 16px; }
  .trust-list li:first-child { border-top-color: var(--line-strong); }
  .trust-list i { grid-row: span 2; margin: 2px 0 0; font-size: 24px; }
}

/* ---------- 자주 묻는 질문: 제목은 왼쪽에 붙어 따라오고, 오른쪽 목록은 선만 쓴다 ---------- */
.faq { border-top: 1px solid var(--line); }
.faq-wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-list { display: grid; border-top: 1px solid var(--line-strong); }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; font-weight: 600; font-size: 17px; letter-spacing: -.01em; position: relative; }
summary::-webkit-details-marker { display: none; }
/* 질문은 제목(h3)이지만 모양은 summary의 글자 크기를 그대로 따른다 */
.faq summary h3 { display: inline; font: inherit; letter-spacing: inherit; }
summary::after { content: "+"; position: absolute; right: 4px; top: 50%; translate: 0 -50%; font-size: 24px; font-weight: 300; color: var(--muted); transition: rotate .3s var(--ease); }
details[open] summary::after { rotate: 45deg; }
details p { padding: 0 44px 24px 0; font-size: 15.5px; }
@media (min-width: 900px) { .faq-wrap h2 { position: sticky; top: calc(var(--nav-h) + 40px); } }
@media (max-width: 899px) { .faq-wrap { grid-template-columns: 1fr; } }

/* ---------- 마무리: 큰 문장 하나를 담은 어두운 패널 ---------- */
.closing { padding-top: 0; }
.closing-box { position: relative; isolation: isolate; overflow: hidden; background: var(--dark); color: var(--on-dark); border-radius: 32px; padding: clamp(56px, 9vw, 120px) 24px; text-align: center; display: grid; gap: 34px; justify-items: center; }
/* 배경 영상 위에 어두운 막을 한 겹 덮어 제목의 대비를 지킨다 */
.closing-photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.closing-box::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgb(17 20 16 / .5), rgb(17 20 16 / .68)); }
.closing-box h2 { max-width: none; font-size: clamp(30px, 4.4vw, 56px); line-height: 1.16; }

/* ---------- 바닥글 ---------- */
.footer { border-top: 1px solid var(--line); padding: 48px 0 40px; font-size: 14px; color: var(--muted); }
.footer-row { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-brand { display: grid; gap: 4px; }
.footer-brand .brand { color: var(--ink); margin-bottom: 10px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.footer-links a { font-weight: 500; text-decoration: none; color: var(--ink); }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-biz { line-height: 1.7; }
.nowrap { white-space: nowrap; }
.footer-note { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 13px; }

/* ---------- 로그인 ---------- */
.auth { padding: clamp(40px, 7vw, 96px) 0 clamp(72px, 9vw, 128px); }
.auth-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 432px); gap: clamp(32px, 6vw, 96px); align-items: center; }
.auth-side h1 { font-size: clamp(32px, 4.2vw, 52px); line-height: 1.16; letter-spacing: -.035em; font-weight: 700; }
.auth-side p { margin-top: 20px; color: var(--muted); max-width: 26em; }
/* 넓은 화면에서만 보이는 사진. 좁은 화면에서는 로그인 칸이 먼저 보여야 해서 숨긴다 */
.auth-photo { margin-top: clamp(28px, 4vw, 44px); width: 100%; height: auto; max-width: 540px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-card); }
@media (max-width: 899px) { .auth-photo { display: none; } }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: clamp(24px, 4vw, 36px); display: grid; gap: 14px; }
.auth-card h2 { font-size: 21px; letter-spacing: -.02em; font-weight: 700; }
/* 카카오·Google 버튼은 한 쌍으로 보이게 크기를 맞춘다. Google 버튼은 Google이 직접 그리며
   높이가 40px로 고정이라, 카카오 버튼을 같은 높이·글자 크기·알약 모양에 맞춘다. */
.btn-social { width: 100%; max-width: 400px; min-height: 40px; height: 40px; padding: 0 12px; gap: 8px; font-size: 14px; font-weight: 600; justify-self: center; }
.btn-social img, .btn-social svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-kakao { background: #FEE500; color: rgb(0 0 0 / .85); }
.btn-google { background: #FFFFFF; color: #1F1F1F; border-color: #DADCE0; font-weight: 500; }
.google-button { display: flex; justify-content: center; height: 40px; color-scheme: light; }
.btn-social .soon { font-size: 12.5px; font-weight: 600; opacity: .75; }
.or { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 13px; margin: 8px 0 2px; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.auth-form { display: grid; gap: 14px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: 14.5px; }
.field input { width: 100%; min-height: 48px; padding: 0 14px; border-radius: var(--radius-input); border: 1px solid var(--line-strong); background: var(--surface); font-size: 16px; transition: border-color .2s; }
.field input:focus { outline: none; border-color: var(--ink); }
.form-help { font-size: 13.5px; color: var(--muted); }
.form-error { font-size: 14.5px; font-weight: 600; color: var(--danger); min-height: 1.5em; }
.form-note { font-size: 13px; color: var(--muted); text-align: center; }
@media (max-width: 899px) {
  .auth-grid { grid-template-columns: 1fr; }
  .auth-side p { display: none; }
}

/* ---------- 내 계정·계정 연결 ---------- */
.welcome { padding: clamp(48px, 8vw, 112px) 0; }
.welcome-box { max-width: 640px; display: grid; gap: 18px; }
.avatar-photo { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.welcome-box h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.2; letter-spacing: -.03em; font-weight: 700; }
.welcome-box p { color: var(--muted); }
.status-card { margin-top: 6px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 24px 26px; display: grid; gap: 8px; }
.status-card strong { font-size: 17.5px; font-weight: 600; }
.panel-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: clamp(22px, 4vw, 32px); display: grid; gap: 14px; }
.panel-card h2 { font-size: 21px; letter-spacing: -.02em; font-weight: 700; }
.guide { display: grid; gap: 8px; }
.guide li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--muted); }
.guide i { font-size: 18px; margin-top: 3px; flex-shrink: 0; color: var(--ink); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); flex-shrink: 0; }
.check-all { font-weight: 600; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.account-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 24px 26px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.account-card small { display: block; color: var(--muted); font-size: 13px; font-weight: 600; }
.account-card strong { display: block; font-size: 23px; letter-spacing: -.02em; font-weight: 700; }
.account-card p { margin-top: 4px; font-size: 14.5px; }
.account-card.is-deleted { background: var(--bg-alt); border-style: dashed; border-color: var(--line-strong); }
.account-links { flex-basis: 100%; display: flex; gap: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.plan-note { font-size: 14px; color: var(--muted); }
.account-actions { display: flex; align-items: center; gap: 18px; margin-top: 6px; }
.dialog { border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); color: var(--ink); padding: 28px; width: min(92vw, 420px); }
.dialog::backdrop { background: rgb(11 13 10 / .55); }
.dialog h2 { font-size: 20px; letter-spacing: -.02em; font-weight: 700; }
.dialog p { margin-top: 10px; color: var(--muted); font-size: 15px; }
.dialog p + p { margin-top: 8px; }
.dialog-actions { margin-top: 22px; display: flex; justify-content: flex-end; gap: 10px; }
.skeleton { height: 1em; width: 60%; border-radius: 8px; background: linear-gradient(90deg, var(--line), transparent, var(--line)); background-size: 200% 100%; }

/* ---------- 약관 문서 ---------- */
.doc { padding: clamp(48px, 7vw, 96px) 0 clamp(72px, 9vw, 128px); }
.doc-wrap { max-width: 740px; }
.doc h1 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -.03em; line-height: 1.2; font-weight: 700; }
.doc .doc-meta { margin-top: 12px; color: var(--muted); font-size: 15px; }
.doc h2 { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 21px; letter-spacing: -.02em; font-weight: 700; }
.doc p, .doc li { font-size: 16px; }
.doc p { margin-top: 12px; }
.doc ul { margin-top: 12px; display: grid; gap: 8px; padding-left: 20px; list-style: disc; }
.doc ul li::marker { color: var(--muted); }
.doc-table { margin-top: 16px; display: grid; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.doc-table > div { padding: 16px 20px; }
.doc-table > div + div { border-top: 1px solid var(--line); }
.doc-table b { display: block; margin-bottom: 4px; font-weight: 600; }
.doc-table span { color: var(--muted); font-size: 15px; }
/* 가이드 글: 약관 문서의 글 모양을 쓰고, 표·순서 목록·요약 상자·끝의 시작하기 안내를 더한다 */
.guide-doc .doc-wrap { max-width: 820px; }   /* .guide 는 내 계정 화면의 안내 목록이 이미 쓰는 이름이라 피한다 */
.doc .crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; padding: 0; list-style: none; color: var(--muted); }
.doc .crumbs li { font-size: 13.5px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.crumbs a { color: inherit; text-underline-offset: 3px; }
.guide-lead { margin-top: 20px; font-size: 18px; color: var(--muted); }
.doc h3 { margin-top: 28px; font-size: 18px; letter-spacing: -.015em; font-weight: 600; }
.doc ol { margin-top: 12px; display: grid; gap: 8px; padding-left: 22px; list-style: decimal; }
.guide-summary { margin-top: 36px; padding: 24px clamp(20px, 3vw, 28px); background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-card); }
.guide-summary h2 { margin-top: 0; padding-top: 0; border-top: 0; font-size: 18px; }
.table-scroll { margin-top: 16px; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.doc table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { padding: 12px 16px; text-align: left; vertical-align: top; }
.doc th { font-weight: 600; font-size: 13.5px; color: var(--muted); border-bottom: 1px solid var(--line); white-space: nowrap; }
.doc tbody tr + tr td { border-top: 1px solid var(--line); }
.doc td:first-child { font-weight: 600; min-width: 7.5em; overflow-wrap: normal; }
.guide-sources li { font-size: 14.5px; }
.guide-cta { margin-top: 56px; padding: clamp(24px, 4vw, 36px); background: var(--dark); color: var(--on-dark); border-radius: var(--radius-card); display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.guide-cta strong { display: block; font-size: 20px; letter-spacing: -.02em; }
.guide-cta p { margin-top: 4px; font-size: 15px; color: var(--on-dark-muted); }
.guide-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.guide-cta .btn-ghost { color: var(--on-dark); border-color: var(--dark-line); }
@media (hover: hover) { .guide-cta .btn-ghost:hover { border-color: var(--on-dark); } }
.guide-cta :focus-visible { outline-color: var(--on-dark); }
@media (prefers-color-scheme: dark) { .guide-cta { border: 1px solid var(--line); } }

.notice { margin-top: 28px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; font-size: 15px; }

/* ---------- 움직임 (움직임 줄이기 설정이면 모두 끔) ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* 1) 첫 화면이 열릴 때: 제목은 줄 단위로 아래에서 올라오고, 설명·버튼·무대가 차례로 떠오른다 */
  .hero h1 .line > span { animation: line-up .9s var(--ease) both; }
  .hero h1 .line:nth-child(2) > span { animation-delay: .09s; }
  .load { animation: rise .8s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms + .3s); }
  @keyframes line-up { from { transform: translateY(108%); } to { transform: none; } }
  @keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

  /* 2) 스크롤 등장: 한 종류뿐. 묶음(data-stagger) 안에서는 순번(--i)만큼 늦게 나타난다 */
  .js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
  .js .reveal.in { opacity: 1; transform: none; }

  /* 3) 어두운 패널 둘(무대, 마무리): 화면에 들어오는 만큼 조금씩 커지며 자리 잡는다 */
  @supports (animation-timeline: view()) {
    .zoom { animation: zoom-in linear both; animation-timeline: view(); animation-range: entry 0% cover 32%; }
    @keyframes zoom-in { from { transform: scale(.93); } to { transform: none; } }
  }

  /* 사진: 마우스를 올리면 아주 천천히 다가온다 */
  @media (hover: hover) {
    .case > img { transition: scale 1.4s var(--ease); }
    .case:hover > img { scale: 1.045; }
  }

  /* 4) 작동 방식 무대: 막대가 다 차면 다음 단계로 넘어간다 (화면에 보일 때만, 마우스를 올리면 멈춤) */
  .js .step { transition: color .3s; }
  .js .step-body { transition: opacity .35s; }
  .js .step-desc { transition: grid-template-rows .45s var(--ease), opacity .35s; }
  .stage.is-running .step.is-active .step-bar::after { animation: step-fill 3s linear both; }
  .stage.is-running li:last-child .step.is-active .step-bar::after { animation-duration: 5.5s; }
  @media (hover: hover) { .steps:hover .step-bar::after { animation-play-state: paused; } }
  @keyframes step-fill { from { transform: var(--fill-from); } to { transform: none; } }
  .thread .enter { animation: rise .5s var(--ease) both; animation-delay: calc(var(--d, 0) * 380ms + .1s); }

  /* 5) 공개 답글 예시: 세 문구가 차례로 선택된다 (무작위로 고른다는 뜻) */
  .chips li { animation: pick 6s infinite; }
  .chips li:nth-child(2) { animation-delay: 2s; }
  .chips li:nth-child(3) { animation-delay: 4s; }
  @keyframes pick {
    0%, 28% { background: var(--ink); color: var(--bg); border-color: transparent; }
    33%, 100% { background: var(--surface); color: var(--muted); border-color: var(--line-strong); }
  }

  /* 6) 자주 묻는 질문: 답이 높이에 맞춰 부드럽게 펼쳐진다 (지원하는 브라우저만) */
  @supports (interpolate-size: allow-keywords) {
    :root { interpolate-size: allow-keywords; }
    details::details-content { block-size: 0; overflow: clip; transition: block-size .4s var(--ease), content-visibility .4s allow-discrete; }
    details[open]::details-content { block-size: auto; }
  }

  .skeleton { animation: shimmer 1.4s linear infinite; }
  @keyframes shimmer { to { background-position: -200% 0; } }
}
