/* K-TIPS 최소 웹페이지 — 브랜드: 노랑 #FFD400 · 빨강 #E60012 · 검정. 논리 속성만 써서 아랍어(RTL)에서 자동 반전된다. */
:root {
  --yellow: #ffd400;
  --red: #e60012;
  --ink: #111;
  --muted: #555;
  --line: #e4e4e4;
  --soft: #fff7cc;
  --bg: #fff;
  --danger: #c8000f;
  --radius: 14px;
  color-scheme: light;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR",
    "Noto Sans", "Noto Sans Thai", "Noto Sans Arabic", "PingFang SC", "Microsoft YaHei", sans-serif;
  overflow-wrap: break-word;
  word-break: keep-all;
}
:lang(th),
:lang(zh-Hans),
:lang(zh-Hant),
:lang(vi),
:lang(ru),
:lang(mn),
:lang(ar) {
  word-break: normal;
}
a {
  color: inherit;
  text-underline-offset: 3px;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.wrap {
  width: 100%;
  max-width: 680px;
  margin-inline: auto;
  padding-inline: 16px;
}

/* 헤더 */
.top {
  border-bottom: 2px solid var(--ink);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 20;
}
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
}
.brand {
  display: inline-flex;
  border-radius: 10px;
}
.brand .logo {
  display: block;
}
.lang {
  position: relative;
}
.lang summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  background: #fff;
  user-select: none;
}
.lang summary::-webkit-details-marker {
  display: none;
}
.lang[open] summary {
  background: var(--yellow);
}
.lang ul {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  margin: 0;
  padding: 6px;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  width: min(320px, calc(100vw - 32px));
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--ink);
}
.lang a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 15px;
}
.lang a:hover {
  background: var(--soft);
}
.lang a[aria-current="true"] {
  background: var(--yellow);
  font-weight: 700;
}

/* 본문 */
main {
  padding-block: 28px 48px;
  min-height: 60vh;
}
h1 {
  font-size: clamp(24px, 6.4vw, 32px);
  line-height: 1.3;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
h2 {
  font-size: 20px;
  line-height: 1.35;
  margin: 36px 0 12px;
}
h3 {
  font-size: 17px;
  margin: 24px 0 8px;
}
p {
  margin: 0 0 12px;
}
.lead {
  font-size: 17px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 14px;
}
.card {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 18px 16px;
  margin-block: 20px;
  background: #fff;
  box-shadow: 4px 4px 0 var(--ink);
}
[dir="rtl"] .card {
  box-shadow: -4px 4px 0 var(--ink);
}
.card > h2:first-child,
.card > h3:first-child {
  margin-top: 0;
}
.card.warn {
  background: var(--soft);
}
.note {
  border-inline-start: 4px solid var(--yellow);
  background: var(--soft);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 15px;
}
.center {
  text-align: center;
  padding-block: 24px;
}
.center > .stack {
  text-align: start;
  margin-top: 20px;
}
.code-404 {
  font-size: 64px;
  font-weight: 900;
  line-height: 1;
  margin: 0 0 8px;
  color: var(--red);
  -webkit-text-stroke: 2px var(--ink);
}

/* 버튼 */
.stack {
  display: grid;
  gap: 12px;
}
@media (min-width: 560px) {
  .stack.two {
    grid-template-columns: 1fr 1fr;
  }
}
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 12px 18px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.06s ease, box-shadow 0.06s ease;
}
.btn.inline {
  display: inline-flex;
  width: auto;
}
.btn-primary {
  background: var(--yellow);
  box-shadow: 3px 3px 0 var(--ink);
}
[dir="rtl"] .btn-primary {
  box-shadow: -3px 3px 0 var(--ink);
}
.btn-danger {
  background: var(--red);
  border-color: var(--ink);
  color: #fff;
}
.btn:active {
  transform: translateY(2px);
  box-shadow: none;
}
.btn[disabled],
.btn[aria-busy="true"] {
  opacity: 0.55;
  cursor: progress;
}
.linklike {
  background: none;
  border: 0;
  padding: 6px 0;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  justify-self: center;
}

/* 첫 화면 */
.hero {
  text-align: center;
  padding-block: 12px 8px;
}
.hero-logo {
  margin: 0 auto 16px;
  line-height: 0;
}
.hero-logo .logo {
  filter: drop-shadow(4px 4px 0 var(--ink));
}
[dir="rtl"] .hero-logo .logo {
  filter: drop-shadow(-4px 4px 0 var(--ink));
}
.hero h1 {
  margin-bottom: 12px;
}
.tagline {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.45;
  margin: 0 auto 8px;
  max-width: 30em;
}
.hero > .stack {
  margin-top: 24px;
  text-align: start;
}
.list-links {
  padding: 4px 0;
}
.list-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  text-decoration: none;
  font-weight: 700;
  border-top: 1px solid var(--line);
}
.list-links a:first-child {
  border-top: 0;
}
.chev {
  font-size: 22px;
  line-height: 1;
}
[dir="rtl"] .chev {
  transform: scaleX(-1);
}

/* 문서 */
.meta {
  font-size: 14px;
}
.legal {
  margin-top: 16px;
}
.legal h3,
.legal h4 {
  margin: 28px 0 8px;
}
.legal ul,
.legal ol,
.steps,
.plain {
  padding-inline-start: 1.3em;
  margin: 0 0 12px;
}
.legal li,
.steps li {
  margin-bottom: 6px;
}
.legal table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 14px;
}
.legal td,
.legal th {
  border: 1px solid #bbb;
  padding: 6px 8px;
  vertical-align: top;
  text-align: start;
}
.legal th {
  background: var(--soft);
}
.see-also {
  margin-top: 32px;
}
.kv {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  margin: 0;
}
.kv dt {
  font-weight: 700;
}
.kv dd {
  margin: 0;
}
.faq {
  border-top: 2px solid var(--ink);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  padding: 14px 0;
  list-style-position: inside;
}
.faq-item .answer {
  padding-bottom: 12px;
}

/* 공유 랜딩 */
.share h1 {
  margin-top: 8px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.chip,
.badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  padding: 3px 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
}
.badge {
  background: var(--yellow);
}
.badge-paid {
  background: var(--ink);
  color: var(--yellow);
}
.intro {
  font-size: 17px;
}
.share > .stack,
.invite > .stack {
  margin-top: 20px;
}

/* 양식 */
label {
  font-weight: 700;
}
input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  font: inherit;
  font-size: 17px;
  background: #fff;
  color: var(--ink);
}
#del-code {
  font-size: 22px;
  letter-spacing: 0.3em;
  text-align: center;
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400;
}
.check input {
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  flex: none;
  accent-color: var(--red);
}
.alert {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 2px solid var(--danger);
  background: #fff1f1;
  color: var(--danger);
  font-weight: 700;
}
.done h3 {
  margin-top: 0;
}

/* 결제 WebView 페이지 */
.pay main {
  padding-block: 32px;
}
.pay-box {
  text-align: center;
}
.pay-box .logo {
  margin-bottom: 12px;
}
.amount {
  display: grid;
  gap: 2px;
  margin: 16px 0;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--soft);
  border: 2px solid var(--ink);
}
.amount strong {
  font-size: 26px;
  line-height: 1.2;
}
.spinner {
  width: 28px;
  height: 28px;
  margin: 8px auto;
  border: 3px solid var(--line);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation-duration: 2.4s;
  }
  .btn {
    transition: none;
  }
}

/* 바닥글 */
.foot {
  border-top: 2px solid var(--ink);
  padding-block: 20px 36px;
  font-size: 14px;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 10px;
}
.foot-links a {
  font-weight: 700;
}
