/* biome-ignore-all lint/style/noDescendingSpecificity: 컴포넌트 규칙 뒤에 문맥별 덮어쓰기를 두는 구조라 순서가 의도다 */
/* biome-ignore-all lint/complexity/noImportantStyles: [hidden]은 어떤 display 규칙보다 항상 이겨야 한다 */
/*
 * Lota 사이트 셸 v2 — 디자인 토큰, 기본 요소, 컴포넌트, 머리말·바닥글.
 * 색은 앱의 「카드」 스타일(밝은 민트)을 그대로 따른다. 로고 타일도 같은 청록→하늘 그라데이션이고, 페이지 구획은 어둡게 칠하지 않는다.
 * CSP 때문에 인라인 style을 쓰지 않는다. 값은 모두 여기 클래스로 둔다.
 * 페이지 전용 스타일(예: landing.css)은 이 파일 위에 얹는다. 보드: docs/design/2026-11-22-web-v2/index.html
 */

:root {
  /* 색 */
  --bg: #ffffff;
  --canvas: #f4f8f7;
  --ink: #0f1c19;
  --ink-2: #4a5f59;
  --ink-3: #8b9c97;
  --line: #e3ebe8;
  --line-2: #d3dfdb;
  --card-edge: #e6eeeb;
  --accent: #12b5a1;
  --accent-2: #0ea5e9;
  --accent-ink: #0b766a;
  --accent-soft: #e8f8f5;
  --accent-edge: #a3e9dd;
  --accent-wash: rgb(18 181 161 / 10%);
  --mint: #34e0c2;
  --warn-bg: #fffaeb;
  --warn-edge: #fbe3a0;
  --warn-ink: #855600;
  --err-bg: #fff2f4;
  --err-edge: #fecdd6;
  --err-ink: #a3123a;
  --stop: #e11d48;
  --stop-edge: #fecdd3;
  --live-edge: #7ddfcf;
  --live-bg: #f2fcfa;
  --live-ink: #0d8577;
  --grad: linear-gradient(120deg, #12b5a1, #0ea5e9);
  --grad-text: linear-gradient(120deg, #0fa593, #0a93d0);

  /* 그림자 */
  --shadow-line: 0 1px 2px rgb(16 40 35 / 4%);
  --shadow-card: 0 1px 2px rgb(16 40 35 / 4%), 0 8px 24px rgb(16 40 35 / 6%);
  --shadow-pop: 0 2px 6px rgb(15 28 25 / 6%), 0 24px 56px rgb(15 28 25 / 12%);
  --shadow-primary: 0 10px 22px rgb(18 181 161 / 26%), inset 0 1px 0 rgb(255 255 255 / 25%);
  --shadow-primary-hover: 0 14px 28px rgb(18 181 161 / 32%), inset 0 1px 0 rgb(255 255 255 / 25%);

  /* 모서리 */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* 글자 */
  --font-ja: "Pretendard Variable", Pretendard, "Yu Gothic UI", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --font: "Pretendard Variable", Pretendard, system-ui, -apple-system, "Segoe UI", "Malgun Gothic", sans-serif;

  /* 자리 */
  --header-h: 68px;
  --gutter: 24px;
}

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

html {
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: -0.012em;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.035em;
  font-weight: 780;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul,
ol,
dl,
dd,
figure {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
}

summary {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 3px;
  border-radius: 8px;
  box-shadow: 0 0 0 6px var(--accent-edge);
}

::selection {
  background: var(--accent-edge);
  color: var(--ink);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

:lang(ja) {
  font-family: var(--font-ja);
}

.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentcolor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* ───────── 레이아웃 ───────── */

.container {
  width: min(1160px, 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.container-narrow {
  width: min(780px, 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.section {
  padding: 104px 0;
}

.section-canvas {
  background: var(--canvas);
}

.section-soft {
  background: var(--accent-soft);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head.left {
  margin-inline: 0;
  text-align: left;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--accent-ink);
  font-size: 14.5px;
  font-weight: 750;
  letter-spacing: 0.01em;
}

.section-title {
  font-size: clamp(28px, 3.6vw, 38px);
  line-height: 1.25;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.section-lead {
  margin-top: 16px;
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1.7;
}

/* ───────── 단추 ───────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 720;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.14s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.btn .icon {
  width: 19px;
  height: 19px;
  stroke-width: 2;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-primary-hover);
}

.btn-primary:active {
  transform: none;
}

.btn-primary:focus-visible {
  box-shadow:
    var(--shadow-primary),
    0 0 0 5px var(--accent-edge);
}

.btn-secondary {
  border-color: var(--line-2);
  background: var(--bg);
  color: var(--ink);
  box-shadow: var(--shadow-line);
}

.btn-secondary:hover {
  border-color: var(--accent-edge);
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-2);
}

.btn-ghost:hover {
  background: var(--canvas);
  color: var(--ink);
}

.btn-lg {
  min-height: 56px;
  padding: 0 28px;
  border-radius: 16px;
  font-size: 17px;
}

.btn-sm {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 14.5px;
}

.btn-block {
  width: 100%;
}

/* ───────── 알약·카드 ───────── */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 14px;
  border: 1px solid var(--accent-edge);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 13.5px;
  font-weight: 720;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.badge-plain {
  border-color: var(--line);
  background: var(--canvas);
  color: var(--ink-2);
}

.badge-warn {
  border-color: var(--warn-edge);
  background: var(--warn-bg);
  color: var(--warn-ink);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

@media (prefers-reduced-motion: no-preference) {
  .badge-dot {
    animation: pulse-dot 1.8s ease-out infinite;
  }
}

@keyframes pulse-dot {
  0% {
    box-shadow: 0 0 0 0 rgb(18 181 161 / 45%);
  }

  70% {
    box-shadow: 0 0 0 7px rgb(18 181 161 / 0%);
  }

  100% {
    box-shadow: 0 0 0 0 rgb(18 181 161 / 0%);
  }
}

.card {
  border: 1px solid var(--card-edge);
  border-radius: var(--r-lg);
  background: var(--bg);
  box-shadow: var(--shadow-card);
}

.card-pad {
  padding: 28px;
}

.icon-tile {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.icon-tile .icon {
  width: 22px;
  height: 22px;
}

/* ───────── 자주 묻는 질문 ───────── */

.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.faq details:hover {
  border-color: var(--line-2);
}

.faq details[open] {
  border-color: var(--accent-edge);
  box-shadow: var(--shadow-card);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-size: 17.5px;
  font-weight: 720;
  letter-spacing: -0.025em;
  line-height: 1.45;
  list-style: none;
}

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

.faq summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  margin-right: 4px;
  border-right: 2px solid var(--ink-3);
  border-bottom: 2px solid var(--ink-3);
  transform: translateY(-2px) rotate(45deg);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.faq details[open] summary::after {
  border-color: var(--accent-ink);
  transform: translateY(2px) rotate(225deg);
}

.faq-body {
  padding: 0 24px 22px;
  color: var(--ink-2);
  font-size: 16.5px;
  line-height: 1.75;
}

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

.faq-body a,
.text-link {
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--accent-edge);
  text-underline-offset: 3px;
}

.faq-body a:hover,
.text-link:hover {
  text-decoration-color: var(--accent-ink);
}

/* ───────── 머리말 ───────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgb(255 255 255 / 86%);
  backdrop-filter: saturate(1.5) blur(16px);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 20px rgb(16 40 35 / 4%);
}

.site-header-in {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  font-size: 21px;
  font-weight: 820;
  letter-spacing: -0.04em;
  line-height: 1;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 8px 14px;
  border-radius: 10px;
  color: var(--ink-2);
  font-size: 15.5px;
  font-weight: 650;
  letter-spacing: -0.02em;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--canvas);
  color: var(--ink);
}

.site-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.site-menu {
  display: none;
  position: relative;
}

.site-menu summary {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  list-style: none;
}

.site-menu summary::-webkit-details-marker {
  display: none;
}

.site-menu .menu-close,
.site-menu[open] .menu-open {
  display: none;
}

.site-menu[open] .menu-close {
  display: block;
}

.site-menu-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  display: grid;
  gap: 2px;
  width: min(260px, 100vw - var(--gutter) * 2);
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
  box-shadow: var(--shadow-pop);
}

.site-menu-panel a {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 680;
}

.site-menu-panel a:hover,
.site-menu-panel a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent-ink);
}

@media (width <= 860px) {
  .site-nav {
    display: none;
  }

  .site-menu {
    display: block;
  }

  .site-header-in {
    gap: 12px;
  }
}

@media (width <= 480px) {
  :root {
    --gutter: 18px;
  }

  .site-actions .btn-ghost {
    padding: 0 10px;
  }

  .site-actions .btn-primary {
    padding: 0 12px;
  }
}

/* ───────── 바닥글 ───────── */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--canvas);
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.7;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 2fr;
  gap: 48px;
  padding: 64px 0 40px;
}

.footer-brand p {
  margin-top: 14px;
}

.footer-mail {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent-ink);
  font-weight: 700;
}

.footer-mail:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.footer-cols h2 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.footer-cols a {
  display: block;
  padding: 4px 0;
  color: var(--ink-2);
}

.footer-cols a:hover {
  color: var(--accent-ink);
}

.footer-biz {
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
}

.footer-biz dl {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px 32px;
}

.footer-biz dl div {
  display: flex;
  gap: 10px;
}

.footer-biz dt {
  flex: none;
  color: var(--ink-3);
  font-weight: 650;
}

.footer-biz dd {
  min-width: 0;
  color: var(--ink-2);
}

.footer-biz p {
  margin-top: 22px;
  color: var(--ink-3);
}

@media (width <= 860px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 48px;
  }
}

@media (width <= 560px) {
  .footer-cols {
    grid-template-columns: repeat(2, 1fr);
  }

  .section {
    padding: 72px 0;
  }

  .section-head {
    margin-bottom: 40px;
  }

  .section-lead {
    font-size: 16.5px;
  }
}

/* ───────── 2단계: 모든 페이지가 쓰는 공용 조각 ───────── */

.grad-text {
  background: var(--grad-text);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* 페이지 머리: 민트 번짐 + 제목 + 리드 */
.page-head {
  position: relative;
  padding: 64px 0 44px;
  background:
    radial-gradient(46% 90% at 90% 0%, rgb(18 181 161 / 13%), transparent 70%),
    radial-gradient(40% 80% at 4% 0%, rgb(14 165 233 / 8%), transparent 70%),
    linear-gradient(180deg, var(--accent-soft), var(--bg));
}

.page-head h1 {
  font-size: clamp(30px, 4.4vw, 44px);
  letter-spacing: -0.04em;
  font-weight: 800;
}

.page-lead {
  max-width: 36em;
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1.7;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 20px;
}

@media (width <= 560px) {
  .page-head {
    padding: 44px 0 32px;
  }

  .page-lead {
    font-size: 16.5px;
  }
}

/* 문서 본문 */
.prose {
  color: var(--ink-2);
  font-size: 16.5px;
  line-height: 1.85;
}

.prose h2 {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 22px;
  letter-spacing: -0.03em;
}

.prose h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.prose p,
.prose li {
  margin-top: 10px;
}

.prose ul {
  padding-left: 1.25em;
  list-style: disc;
}

.prose li::marker {
  color: var(--accent);
}

.prose a {
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--accent-edge);
  text-underline-offset: 3px;
}

.prose a:hover {
  text-decoration-color: var(--accent-ink);
}

.prose strong {
  color: var(--ink);
}

/* ───────── 알림·알약 ───────── */

.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 16px;
  border: 1px solid var(--accent-edge);
  border-radius: var(--r-md);
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.55;
}

.alert .icon {
  width: 19px;
  height: 19px;
  margin-top: 2px;
}

.alert > span,
.alert > div {
  min-width: 0;
  flex: 1;
}

.alert-warn {
  border-color: var(--warn-edge);
  background: var(--warn-bg);
  color: var(--warn-ink);
}

.alert-error {
  border-color: var(--err-edge);
  background: var(--err-bg);
  color: var(--err-ink);
}

.chip {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--canvas);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 720;
  line-height: 1;
  white-space: nowrap;
}

.chip-ok {
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.chip-warn {
  background: var(--warn-bg);
  color: var(--warn-ink);
}

.chip-err {
  background: var(--err-bg);
  color: var(--err-ink);
}

.chip-req {
  background: var(--accent-soft);
  color: var(--accent-ink);
}

/* ───────── 폼 ───────── */

.field {
  display: grid;
  gap: 7px;
}

.field-label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.input::placeholder {
  color: var(--ink-3);
}

.input:hover {
  border-color: var(--ink-3);
}

.input:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 4px var(--accent-edge);
}

.help {
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.6;
}

.btn:disabled {
  background: #e4ece9;
  color: #7d908a;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.btn-danger {
  border-color: var(--stop-edge);
  background: var(--bg);
  color: var(--err-ink);
  box-shadow: var(--shadow-line);
}

.btn-danger:hover {
  background: var(--err-bg);
}

.btn-danger:disabled {
  border-color: var(--line);
  background: var(--canvas);
  color: #7d908a;
}

.link-btn {
  padding: 8px;
  border: 0;
  background: none;
  color: var(--accent-ink);
  font: inherit;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--accent-edge);
  text-underline-offset: 3px;
  cursor: pointer;
}

.link-btn:hover {
  text-decoration-color: var(--accent-ink);
}

/* 체크 상자·스위치: 기본 input을 그대로 쓰되 모양만 바꾼다(스크립트가 읽는 속성이 그대로다) */
.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.check input,
.consent-row input {
  appearance: none;
  display: grid;
  flex: none;
  place-content: center;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 1.5px solid var(--line-2);
  border-radius: 7px;
  background: var(--bg);
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease;
}

.check input::after,
.consent-row input::after {
  content: "";
  width: 6px;
  height: 11px;
  margin-top: -2px;
  border: solid #fff;
  border-width: 0 2.4px 2.4px 0;
  opacity: 0;
  transform: rotate(45deg);
}

.check input:checked,
.consent-row input:checked {
  border-color: transparent;
  background: var(--grad);
}

.check input:checked::after,
.consent-row input:checked::after {
  opacity: 1;
}

.check input:hover:not(:checked),
.consent-row input:hover:not(:checked) {
  border-color: var(--accent);
}

.check input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.toggle input {
  appearance: none;
  position: relative;
  flex: none;
  width: 46px;
  height: 28px;
  margin: 0;
  border-radius: 999px;
  background: #cfdad6;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.toggle input::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgb(15 28 25 / 25%);
  transition: transform 0.2s ease;
}

.toggle input:checked {
  background: var(--grad);
}

.toggle input:checked::after {
  transform: translateX(18px);
}

.toggle input:disabled {
  opacity: 0.55;
  cursor: wait;
}

@media (prefers-reduced-motion: reduce) {
  .toggle input,
  .toggle input::after,
  .check input,
  .input {
    transition: none;
  }
}

/* ───────── 표 ───────── */

.table-wrap {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.table th {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-2);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}

.table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.table tbody tr:last-child td {
  border-bottom: 0;
}

.table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* 항목 · 내용 표(처리방침의 수집·국외 이전 표) */
.kv-table {
  width: 100%;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  font-size: 15px;
  line-height: 1.7;
}

.kv-table th,
.kv-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

.kv-table tr:last-child th,
.kv-table tr:last-child td {
  border-bottom: 0;
}

.kv-table th {
  width: 9.5em;
  background: var(--canvas);
  color: var(--ink);
  font-weight: 700;
}

.kv-table td {
  color: var(--ink-2);
}

@media (width <= 560px) {
  .kv-table th {
    width: 6.5em;
    padding-inline: 12px;
  }

  .kv-table td {
    padding-inline: 12px;
  }
}

/* ───────── 결과·빈 화면 ───────── */

.state {
  display: grid;
  justify-items: center;
  text-align: center;
}

.state-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: #fff;
}

.state-mark::before {
  content: "";
  position: absolute;
  inset: -9px;
  border: 2px solid var(--accent-edge);
  border-radius: 50%;
  opacity: 0.7;
}

.state-mark > span {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: var(--shadow-primary);
}

.state-mark .icon {
  width: 30px;
  height: 30px;
  stroke-width: 2.6;
}

.state[data-state="err"] .state-mark {
  background: var(--err-bg);
}

.state[data-state="err"] .state-mark::before {
  border-color: var(--err-edge);
}

.state[data-state="err"] .state-mark > span {
  background: var(--stop);
  box-shadow: 0 10px 22px rgb(225 29 72 / 25%);
}

.state[data-state="wait"] .state-mark > span {
  background: var(--ink-3);
  box-shadow: none;
}

.state h1 {
  margin-top: 26px;
  font-size: 26px;
  letter-spacing: -0.04em;
}

.state p {
  max-width: 28em;
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.7;
}

.state-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

@media (prefers-reduced-motion: no-preference) {
  .state[data-state="ok"] .state-mark::before,
  .state[data-state="wait"] .state-mark::before {
    animation: state-ping 1.9s ease-out infinite;
  }
}

@keyframes state-ping {
  0% {
    opacity: 0.9;
    transform: scale(0.86);
  }

  100% {
    opacity: 0;
    transform: scale(1.22);
  }
}

/* ───────── 작은 창(앱 안 로그인·충전·동의)용 가벼운 셸 ───────── */

.site-shell {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.site-shell > main {
  display: grid;
  flex: 1;
}

.site-shell-compact {
  background: var(--canvas);
}

.site-header-compact {
  position: static;
  border-bottom-color: var(--line);
  background: var(--bg);
}

.site-header-compact .site-header-in {
  justify-content: space-between;
  gap: 12px;
  height: 58px;
}

.site-header-compact .brand {
  font-size: 19px;
}

.header-end {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 700;
}

.header-end a {
  color: var(--accent-ink);
}

.header-end a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mini-foot {
  padding: 4px var(--gutter) 24px;
  color: var(--ink-2);
  font-size: 13px;
  text-align: center;
}

.mini-foot a {
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 3px;
}

.mini-foot a:hover {
  color: var(--accent-ink);
  text-decoration-color: var(--accent-ink);
}

.mini-foot span {
  margin: 0 6px;
  color: var(--ink-3);
}

/* 작은 창 본문: 넓은 화면에서는 민트 바탕 가운데 카드, 앱 창(560 미만)에서는 창 가득 */
.flow {
  display: grid;
  justify-items: center;
  align-content: center;
  padding: 40px 16px 32px;
}

.flow-card {
  width: min(480px, 100%);
  padding: 40px 40px 34px;
  border: 1px solid var(--card-edge);
  border-radius: var(--r-xl);
  background: var(--bg);
  box-shadow: var(--shadow-card);
}

.flow-wide .flow-card {
  width: min(1000px, 100%);
}

@media (width <= 559px) {
  .site-shell-compact {
    background: var(--bg);
  }

  .flow {
    padding: 0;
  }

  .flow-card {
    width: 100%;
    padding: 26px 22px 28px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .mini-foot {
    padding-top: 12px;
    border-top: 1px solid var(--line);
    background: var(--canvas);
  }
}

.flow-title {
  font-size: 26px;
  line-height: 1.3;
  letter-spacing: -0.04em;
}

.flow-lead {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.65;
}

.flow-mark {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  box-shadow: 0 12px 24px rgb(18 181 161 / 22%);
}

/* 결과 아이콘: 성공·기다림은 체크, 실패는 가위표(`data-state`로 고른다) */
.state-mark i {
  display: grid;
  font-style: normal;
}

.state-mark .m-err,
.state[data-state="err"] .m-ok {
  display: none;
}

.state[data-state="err"] .m-err {
  display: grid;
}
