/* ===========================================================================
   달비 공개 페이지 (랜딩 · 소개 · 요금 · 로그인 · 약관 · 오류)
   dalbi.css 의 토큰과 FX 레이어만 쓴다. 여기서 새 색을 만들지 말 것.

   섹션마다 레이아웃 가족을 바꾼다(같은 구성을 두 번 쓰면 스크롤이 지루해지고
   AI 가 찍어낸 페이지처럼 읽힌다). 2026-10 재구성 기준:

     랜딩  1 히어로      중앙 집중 + 결과물 한 장
           2 신뢰 띠     가로 무한 마퀴          (.tape)
           3 과금 구조   전면 전후 비교 슬라이더  (.cmp)
           4 진행 흐름   스티키 텔링             (.tell)
           5 스타일      가로 스냅 레일          (.snap)
           6 기능        벤토                    (.bento)
           7 포인트      카드 + 자릿수 등장      (.price-*)
           8 FAQ         아코디언                (.faq)
           9 마감        패널                    (.cta-panel)

     소개  선언형 히어로 / 대비 2열(.vs) / 번호 스택(.layer) / 2열 목록 / 아코디언
     요금  중앙 선언 / 띠(.strip) / 카드 / 아코디언 / 패널

   마퀴는 랜딩에 **한 번만** 쓴다(스타일 섹션을 마퀴로 바꾸면 2·5 가 같은 가족이 된다).
   =========================================================================== */

/* ---------------------------------------------------------------------------
   배경 분위기. 고정 레이어라 스크롤 중 리페인트가 없다
   (스크롤 컨테이너 안에 두면 모바일 FPS 가 죽는다).
   --------------------------------------------------------------------------- */
.bg-moon {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(880px 600px at 76% -10%, rgba(232, 176, 90, .14), transparent 62%),
    radial-gradient(720px 520px at 10% 14%, rgba(120, 140, 200, .07), transparent 64%),
    var(--bg);
}
.bg-grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
}

/* 섹션 구분용 가라앉은 띠. 배경색을 섹션마다 즉흥으로 쓰지 말고 이 클래스를 쓴다. */
.sec-soft { background: var(--bg-soft); border-block: 1px solid var(--line); }
.sec-head { max-width: 62ch; }
.sec-head.is-mid { margin-inline: auto; text-align: center; }

/* ===========================================================================
   1. 히어로 - 중앙 집중
   본문은 배지 + 제목 + 설명 + CTA 네 덩어리까지만 둔다. 보조문구를 더 붙이면
   첫 화면에서 CTA 가 접힌다(노트북 세로 720px 기준으로 맞춰 둔 값들이다).
   =========================================================================== */
.hero { position: relative; padding: 64px 0 96px; overflow: hidden; }
.hero-top { position: relative; z-index: 1; text-align: center; }
.hero-top .pill { margin-bottom: 22px; }
.hero h1 { margin-bottom: 20px; }
/* 검색 키워드 줄. 제목과 크기가 비슷하면 머리말이 두 개로 읽히므로 확실히 작게 둔다. */
.hero h1 em {
  display: block; font-style: normal; color: var(--accent);
  font-size: .28em; font-weight: 700; letter-spacing: .01em; margin-top: 18px;
  line-height: 1.5; opacity: .92;
}
.hero-sub {
  font-size: 1.12rem; color: var(--ink-soft); line-height: 1.75;
  max-width: 48ch; margin-inline: auto;
}
.hero-cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; justify-content: center; }
.hero-note { margin-top: 18px; font-size: .84rem; color: var(--ink-faint); }

/* 결과물 한 장. 세로로 긴 상세페이지라 아래를 페이드로 끊어 이어진다는 느낌을 준다. */
.hero-art { position: relative; z-index: 1; margin-top: 56px; }
.sheet {
  position: relative; max-width: 560px; margin-inline: auto;
  border-radius: var(--r-panel); overflow: hidden;
  border: 1px solid var(--line-strong); background: var(--surface);
  box-shadow: var(--elev-3); max-height: 460px;
}
.sheet img { width: 100%; display: block; }
.sheet::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 150px;
  background: linear-gradient(to bottom, transparent, var(--bg) 94%);
}
.sheet-cap {
  position: absolute; left: 50%; bottom: 20px; translate: -50% 0; z-index: 3;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 15px; border-radius: var(--r-pill);
  background: rgba(7, 9, 16, .82); border: 1px solid var(--line-strong);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: .8rem; font-weight: 700; color: var(--ink-soft); white-space: nowrap;
}
.sheet-cap .ic { color: var(--accent); }

/* 샘플이 아직 없을 때. 가짜 결과물 그림 대신 **입력과 받는 것**을 보여준다
   (와이어프레임을 결과물로 깔면 가입자가 받는 것과 달라 그대로 환불 사유가 된다). */
.brief {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  max-width: 820px; margin-inline: auto; overflow: hidden;
  border-radius: var(--r-panel);
}
.brief > div { padding: 28px 30px; }
.brief-in { background: var(--bg-sunken); border-right: 1px solid var(--line); }
.brief-out { background: linear-gradient(170deg, var(--surface), var(--bg-soft)); }
.brief h3 { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.brief-in h3 { color: var(--ink-faint); }
.brief-out h3 { color: var(--accent); }
.brief-line {
  display: flex; gap: 10px; padding: 9px 0; font-size: .9rem;
  border-top: 1px solid var(--line); align-items: baseline;
}
.brief-line:first-of-type { border-top: 0; }
.brief-line b { flex: none; width: 62px; color: var(--ink-faint); font-weight: 600; font-size: .82rem; }
.brief-line span { color: var(--ink); }
.brief-out li { display: flex; gap: 10px; padding: 9px 0; font-size: .92rem; color: var(--ink-soft); }
.brief-out .ic { flex: none; margin-top: 4px; color: var(--accent); }

@media (max-width: 760px) {
  .hero { padding: 44px 0 72px; }
  .hero-art { margin-top: 40px; }
  .brief { grid-template-columns: 1fr; }
  .brief-in { border-right: 0; border-bottom: 1px solid var(--line); }
}

/* ===========================================================================
   2. 신뢰 띠 - 가로 무한 마퀴 (.mq 는 dalbi.css FX)
   =========================================================================== */
.tape { padding: 26px 0; border-block: 1px solid var(--line); background: var(--bg-sunken); }
.tape-item {
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  font-size: .95rem; font-weight: 700; color: var(--ink-soft);
}
.tape-item .ic { color: var(--accent); width: 1.05em; height: 1.05em; }
.tape-item::after {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--line-strong); margin-left: 21px;
}

/* ===========================================================================
   3. 과금 구조 - 전면 전후 비교 슬라이더
   손잡이를 끌면 왼쪽은 마킹본, 오른쪽은 원본이 보인다. JS 는 --p 만 바꾼다
   (dalbi.js initCompare). JS 가 없어도 기본 50% 로 둘 다 보인다.
   =========================================================================== */
.cmp-wrap { max-width: 1000px; margin: 48px auto 0; }
.cmp {
  --p: 52%;
  position: relative; border-radius: var(--r-panel); overflow: hidden;
  border: 1px solid var(--line-strong); background: var(--bg-sunken);
  box-shadow: var(--elev-3);
}
.cmp:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.cmp-shot { position: relative; aspect-ratio: 16 / 11; }
.cmp-shot img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top;
}
/* 원본(마킹 없는 쪽)을 위에 얹고 왼쪽을 잘라낸다. 즉 왼쪽=마킹본, 오른쪽=원본. */
.cmp-top { clip-path: inset(0 0 0 var(--p)); }
.cmp-line {
  position: absolute; top: 0; bottom: 0; left: var(--p); width: 2px; z-index: 2;
  background: var(--accent); pointer-events: none;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .45);
}
.cmp-knob {
  position: absolute; top: 50%; left: var(--p); translate: -50% -50%; z-index: 3;
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-on); box-shadow: var(--elev-2);
  pointer-events: none;
}
/* 투명 range 를 면 전체에 덮어 드래그를 받는다. 키보드로도 움직인다. */
.cmp-range {
  position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: ew-resize;
  -webkit-appearance: none; appearance: none; background: transparent;
}
.cmp-range::-webkit-slider-thumb { -webkit-appearance: none; width: 46px; height: 46px; }
.cmp-range::-moz-range-thumb { width: 46px; height: 46px; border: 0; }
.cmp-tag {
  position: absolute; top: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px; border-radius: var(--r-pill);
  font-size: .78rem; font-weight: 800;
  background: rgba(7, 9, 16, .80); border: 1px solid var(--line-strong);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: var(--ink-soft);
}
.cmp-tag.is-l { left: 16px; }
.cmp-tag.is-r { right: 16px; color: var(--accent); border-color: var(--accent-line); }
.cmp-hint { margin-top: 16px; text-align: center; font-size: .84rem; color: var(--ink-faint); }

/* 비교 밑에 붙는 3칸 설명 */
.cmp-pts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.cmp-pts > div { padding: 24px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); }
.cmp-pts .n {
  display: inline-grid; place-items: center; width: 30px; height: 30px; margin-bottom: 14px;
  border-radius: 50%; background: var(--accent-dim); color: var(--accent);
  border: 1px solid var(--accent-line);
}
.cmp-pts b { display: block; margin-bottom: 6px; }
.cmp-pts p { font-size: .89rem; color: var(--ink-soft); line-height: 1.68; }
@media (max-width: 820px) { .cmp-pts { grid-template-columns: 1fr; } }

/* 샘플이 없을 때의 정직한 대체 패널 */
.cmp-note { max-width: 760px; margin: 44px auto 0; padding: 30px; display: grid; gap: 18px; }
.cmp-note-row { display: flex; gap: 16px; align-items: flex-start; }
.cmp-note-row .ic { flex: none; color: var(--ink-soft); margin-top: 3px; }
.cmp-note-row.is-paid .ic, .cmp-note-row.is-paid b { color: var(--accent); }
.cmp-note-row b { display: block; margin-bottom: 5px; }
.cmp-note-row p { font-size: .91rem; color: var(--ink-soft); line-height: 1.7; }

/* ===========================================================================
   4. 진행 흐름 - 스티키 텔링
   왼쪽 설명이 고정된 채로 오른쪽 단계가 지나간다(.vw-step 이 현재 칸만 밝힌다).
   =========================================================================== */
.tell { display: grid; grid-template-columns: .82fr 1.18fr; gap: 72px; align-items: start; }
.tell-head { position: sticky; top: calc(var(--header-h) + 56px); }
.tell-list { display: flex; flex-direction: column; gap: 18px; }
.tell-item {
  position: relative; padding: 32px; border-radius: var(--r-card);
  background: var(--surface); border: 1px solid var(--line);
}
.tell-no {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 16px;
  font-size: .78rem; font-weight: 800; letter-spacing: .12em; color: var(--accent);
}
.tell-no i {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-dim); border: 1px solid var(--accent-line); font-style: normal;
}
.tell-item h3 { margin-bottom: 10px; }
.tell-item p { color: var(--ink-soft); line-height: 1.75; }
.tell-item .tiny { margin-top: 14px; }
@media (max-width: 920px) {
  .tell { grid-template-columns: 1fr; gap: 36px; }
  .tell-head { position: static; }
}

/* ===========================================================================
   5. 스타일 프리셋 - 가로 스냅 레일
   =========================================================================== */
.snap {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px 24px 28px; margin: 40px -24px 0;
  scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
}
.snap::-webkit-scrollbar { height: 6px; }
.snap::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 99px; }
.snap-card {
  flex: 0 0 276px; scroll-snap-align: start;
  border-radius: var(--r-card); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface);
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.snap-card:hover { transform: translateY(-5px); border-color: var(--accent-line); }
.snap-shot { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-sunken); }
/* 세로로 긴 원본이라 position:absolute 로 띄워야 object-fit:cover 가 먹는다.
   height:100% 만 주면 높이가 미확정일 때 auto 로 풀려 비율대로 늘어난다. */
.snap-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.snap-body { padding: 18px 20px 22px; }
.snap-body h3 { font-size: 1.02rem; margin-bottom: 6px; }
.snap-body p { font-size: .86rem; color: var(--ink-soft); line-height: 1.6; }
.snap-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
/* 실제 샘플이 없는 스타일용 색상 카드. 가짜 레이아웃 그림보다 정직하고,
   샘플 파일이 생기면 자동으로 사진으로 바뀐다(view._active_presets 참고). */
.snap-swatch {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 20px;
  background:
    radial-gradient(240px 180px at 50% 22%, color-mix(in srgb, var(--sw) 34%, transparent), transparent 72%),
    linear-gradient(170deg, color-mix(in srgb, var(--sw) 16%, var(--bg-sunken)), var(--bg-sunken));
}
.snap-swatch span {
  font-size: 1.04rem; font-weight: 800; letter-spacing: -.02em;
  color: var(--sw); text-align: center;
}

/* ===========================================================================
   6. 기능 벤토 (칸 수 = 내용 수. 빈 칸을 만들지 말 것)
   =========================================================================== */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 52px; }
.bento > * { position: relative; border-radius: var(--r-card); padding: 30px; border: 1px solid var(--line); overflow: hidden; }
.b-wide { grid-column: span 4; }
.b-tall { grid-column: span 2; grid-row: span 2; }
.b-half { grid-column: span 3; }
.b-third { grid-column: span 2; }
.bento h3 { margin-bottom: 10px; position: relative; z-index: 1; }
.bento p { color: var(--ink-soft); font-size: .94rem; line-height: 1.7; position: relative; z-index: 1; }

/* 칸마다 바탕을 바꿔야 한다. 전부 같은 카드면 텍스트 여섯 장이 된다. */
.b-plain { background: var(--surface); }
.b-glow {
  background:
    radial-gradient(540px 300px at 88% 0%, rgba(232, 176, 90, .17), transparent 64%),
    var(--surface);
}
.b-sunken { background: var(--bg-sunken); }
.b-shot { position: relative; overflow: hidden; padding: 0; background: var(--bg-sunken); }
.b-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: .82; }
.b-shot .b-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 28px; z-index: 1;
  background: linear-gradient(to top, rgba(7, 9, 16, .96) 36%, transparent);
}
.bento-ic {
  position: relative; z-index: 1;
  display: inline-grid; place-items: center; width: 42px; height: 42px; margin-bottom: 18px;
  border-radius: 12px; background: var(--accent-dim); color: var(--accent);
  border: 1px solid var(--accent-line);
}
@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .b-wide, .b-half, .b-third, .b-tall { grid-column: span 2; grid-row: auto; }
  .b-shot { min-height: 280px; }
}
@media (max-width: 620px) {
  .bento { grid-template-columns: 1fr; }
  .b-wide, .b-half, .b-third, .b-tall { grid-column: span 1; }
}

/* ===========================================================================
   7. 포인트 상품 (카드). 숫자는 .digits 로 자릿수가 차례로 올라온다.
   =========================================================================== */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 48px; }
.price-card {
  position: relative; padding: 30px 26px; border-radius: var(--r-card);
  background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.price-card.is-hot { border-color: var(--accent-line); background: var(--bg-soft); }
.price-badge {
  position: absolute; top: -11px; left: 26px; z-index: 3;
  padding: 4px 12px; border-radius: var(--r-pill);
  background: var(--accent); color: var(--accent-on); font-size: .74rem; font-weight: 800;
}
.price-title { font-size: .92rem; font-weight: 700; color: var(--ink-soft); margin-bottom: 14px; }
.price-point { font-size: 2.05rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; display: flex; align-items: baseline; }
.price-point small { font-size: .5em; font-weight: 700; color: var(--ink-soft); margin-left: 3px; }
.price-bonus { font-size: .84rem; color: var(--accent); font-weight: 700; margin-top: 6px; }
.price-won { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 1.14rem; font-weight: 800; }
.price-note { font-size: .82rem; color: var(--ink-faint); margin-top: 7px; }

/* 차감 기준 띠 (요금 페이지) */
.strip { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.strip > div { padding: 30px 28px; border-left: 1px solid var(--line); }
.strip > div:first-child { border-left: 0; padding-left: 0; }
.strip b { display: block; font-size: 1.02rem; font-weight: 800; margin-bottom: 5px; }
.strip p { font-size: .88rem; color: var(--ink-soft); line-height: 1.6; }
@media (max-width: 760px) {
  .strip { grid-template-columns: 1fr; }
  .strip > div { border-left: 0; border-top: 1px solid var(--line); padding: 22px 0; }
  .strip > div:first-child { border-top: 0; padding-top: 0; }
}

/* ===========================================================================
   8. FAQ (아코디언)
   =========================================================================== */
.faq { margin-top: 44px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 4px; cursor: pointer; list-style: none;
  font-weight: 700; font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary .ic { color: var(--ink-faint); transition: transform .25s var(--ease); flex: none; }
.faq details[open] summary .ic { transform: rotate(180deg); color: var(--accent); }
.faq .faq-a { padding: 0 4px 26px; color: var(--ink-soft); line-height: 1.8; max-width: 76ch; }

/* ===========================================================================
   9. 마감 CTA (패널)
   =========================================================================== */
.cta-panel {
  position: relative; overflow: hidden;
  padding: 68px 56px; border-radius: var(--r-panel);
  background:
    radial-gradient(620px 340px at 84% 16%, rgba(232, 176, 90, .20), transparent 66%),
    linear-gradient(160deg, var(--surface) 0%, var(--bg-sunken) 100%);
  border: 1px solid var(--line-strong);
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center;
}
.cta-panel > div { position: relative; z-index: 1; }
.cta-panel h2 { margin-bottom: 12px; }
.cta-panel p { color: var(--ink-soft); max-width: 50ch; }
.cta-dog { width: 132px; position: relative; z-index: 1; }
@media (max-width: 820px) {
  .cta-panel { grid-template-columns: 1fr; padding: 44px 28px; }
  .cta-dog { display: none; }
}

/* ===========================================================================
   공개 갤러리 (설정에서 켠 경우에만 노출)
   =========================================================================== */
.gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; margin-top: 44px; }
.gal-item { position: relative; aspect-ratio: 3 / 4; border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line); background: var(--bg-sunken); }
.gal-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* ===========================================================================
   소개 페이지 전용 가족
   =========================================================================== */
/* 대비 2열 - 지금 / 달비로 */
.vs { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.vs-col { padding: 30px; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface); }
.vs-col.is-on { background: var(--bg-soft); border-color: var(--accent-line); }
.vs-col h3 { margin-bottom: 18px; }
.vs-col li { display: flex; gap: 11px; align-items: flex-start; padding: 7px 0; }
.vs-col li .ic { flex: none; margin-top: 4px; color: var(--ink-faint); }
.vs-col li span { font-size: .92rem; color: var(--ink-soft); line-height: 1.65; }
.vs-col.is-on li .ic { color: var(--accent); }
.vs-col.is-on li span { color: var(--ink); }

/* 번호 세로 스택 */
.layer { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 28px; padding: 30px 0; border-top: 1px solid var(--line); }
.layer-no { font-size: 1.9rem; font-weight: 800; color: var(--accent); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
@media (max-width: 620px) { .layer { grid-template-columns: 1fr; gap: 12px; } }

/* 2열 목록 (스타일 나열) */
.duo { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 0 44px; }
.duo-row { display: flex; gap: 14px; padding: 20px 0; border-top: 1px solid var(--line); }
.duo-row .dot { width: 12px; height: 12px; border-radius: 50%; flex: none; margin-top: 6px; }
.duo-row b { display: block; margin-bottom: 4px; }

/* ===========================================================================
   로그인 / 가입 - 좌우 분할(왼쪽 브랜드 / 오른쪽 폼)
   900px 아래에서는 왼쪽 패널을 접는다. 폼이 먼저 보여야 한다.
   =========================================================================== */
.auth {
  min-height: calc(100dvh - var(--header-h));
  display: grid; grid-template-columns: 1.02fr .98fr;
}
/* 그리드 기본값(stretch)으로 두면 긴 가입 폼 높이만큼 패널이 늘어나고, 그 안에서
   세로 가운데 정렬이 되어 첫 화면 위쪽이 텅 빈다. 화면 높이로 고정하고 붙여 둔다. */
.auth-side {
  position: sticky; top: var(--header-h); align-self: start;
  height: calc(100dvh - var(--header-h));
  overflow: hidden; padding: 72px 56px;
  display: flex; flex-direction: column; justify-content: center;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(620px 420px at 22% 18%, rgba(232, 176, 90, .14), transparent 66%),
    var(--bg-sunken);
}
.auth-side > * { position: relative; z-index: 1; }
.auth-side .h1 { max-width: 20ch; margin-bottom: 20px; }
.auth-side .lead { max-width: 34ch; }
.auth-side ul { margin-top: 36px; display: grid; gap: 14px; }
.auth-side li { display: flex; gap: 12px; align-items: flex-start; }
.auth-side li .ic { flex: none; margin-top: 3px; color: var(--accent); }
.auth-side li span { font-size: .93rem; color: var(--ink-soft); line-height: 1.6; }
.auth-dog { width: 86px; margin-bottom: 28px; }

.auth-main { display: grid; place-items: center; padding: 56px 24px; }
.auth-box { width: 100%; max-width: 420px; }
.auth-head { margin-bottom: 30px; }
.auth-head h1 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.025em; margin-bottom: 8px; }
.auth-head p { color: var(--ink-soft); font-size: .94rem; }

.sso { display: flex; flex-direction: column; gap: 10px; }
.sso-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 14px 20px; border-radius: var(--r-pill);
  font-weight: 700; font-size: .95rem; border: 1px solid transparent;
  transition: transform .18s var(--ease), filter .18s var(--ease);
}
.sso-btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.sso-btn:active { transform: translateY(0) scale(.99); }
.sso-btn .ic { width: 20px; height: 20px; }
/* 각 서비스의 공식 버튼 색. 알아볼 수 있어야 하므로 브랜드 색을 유지한다
   (이 세 가지만 예외다 - 다른 곳에서 브랜드 색을 쓰지 말 것). */
.sso-google { background: #FFFFFF; color: #1F1F1F; }
.sso-naver { background: #03C75A; color: #FFFFFF; }
.sso-instagram { background: linear-gradient(95deg, #F9CE34, #EE2A7B 48%, #6228D7); color: #FFFFFF; }
/* 준비 중(.env 에 키가 없는 provider). 브랜드 색을 흐리게만 두면 여전히 제일 눈에 띄어서
   누르려다 마는 버튼이 된다. 아예 색을 벗겨 '지금은 못 쓰는 것'으로 읽히게 한다. */
.sso-btn[disabled] {
  background: var(--surface); color: var(--ink-faint);
  border-color: var(--line); opacity: 1; pointer-events: none;
}

.auth-or { display: flex; align-items: center; gap: 14px; margin: 26px 0; color: var(--ink-faint); font-size: .82rem; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.auth-switch { text-align: center; margin-top: 22px; font-size: .9rem; color: var(--ink-soft); }
.auth-switch a { color: var(--accent); font-weight: 700; }
.auth-err {
  padding: 13px 16px; border-radius: var(--r-input); margin-bottom: 22px;
  background: var(--danger-dim); color: var(--danger); font-size: .88rem; font-weight: 600;
  border: 1px solid rgba(232, 112, 95, .3);
}

@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; min-height: 0; }
  .auth-side { display: none; }
  .auth-main { padding: 48px 20px 72px; }
  .auth-head { text-align: center; }
}

/* ===========================================================================
   약관 / 오류
   =========================================================================== */
.doc { padding: 72px 0 96px; }
.doc h2 { margin: 42px 0 14px; font-size: 1.22rem; font-weight: 800; }
.doc h2:first-of-type { margin-top: 28px; }
.doc p, .doc li { color: var(--ink-soft); line-height: 1.85; }
.doc ul { margin: 10px 0 0 4px; }
.doc li { position: relative; padding-left: 16px; margin-bottom: 7px; }
.doc li::before { content: ""; position: absolute; left: 0; top: 13px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

.errpage { min-height: 100dvh; display: grid; place-items: center; text-align: center; padding: 40px 20px; }
.errpage img { width: 118px; margin: 0 auto 24px; }
.errpage .code { font-size: 3.2rem; font-weight: 800; letter-spacing: -.04em; color: var(--accent); line-height: 1; }
