
:root {
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --cyan: #0284c7;
  --cyan-soft: #e0f2fe;
  --ok: #16a34a;
  --ok-soft: #ecfdf3;
  --warn: #d97706;
  --warn-ink: #92400e;
  --warn-soft: #fffbeb;
  --card: rgba(255, 255, 255, 0.9);
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
  --radius: 22px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", system-ui, sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
  min-height: 100vh;
  background-color: #1c2830;
  background-image: url("/bg-gorge.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
}

a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: #0369a1; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.hidden { display: none !important; }

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.1rem;
  background: rgba(255, 248, 236, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(120, 72, 24, 0.16);
}
.brand {
  font-weight: 760;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}
.top nav { display: flex; flex-wrap: wrap; gap: 0.28rem; }
.top nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
  font-size: 0.88rem;
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
}
.top nav a:hover {
  color: #0369a1;
  background: rgba(255, 255, 255, 0.72);
}
.top nav a[aria-current="page"] {
  color: #fff;
  background: linear-gradient(180deg, #38bdf8, #0284c7);
  box-shadow: 0 8px 16px -12px rgba(2, 132, 199, 0.9);
}

main {
  width: min(920px, calc(100% - 1.6rem));
  margin: 1.1rem auto 3.5rem;
  display: grid;
  gap: 0.9rem;
}

.hero, section, .note {
  position: relative;
  background: var(--card);
  border: 1px solid transparent;
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 1px 0 #fff;
  background-image:
    linear-gradient(rgba(255,255,255,0.92), rgba(255,255,255,0.88)),
    linear-gradient(135deg, #f8f1df, #e8c872, #f8fafc, #cbd5e1, #e8c872);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}
.hero, section { padding: 1.25rem 1.3rem 1.15rem; }
.hero { padding: 1.55rem 1.45rem 1.3rem; }
h1 {
  margin: 0.2rem 0 0.55rem;
  font-size: clamp(1.7rem, 3.4vw, 2.35rem);
  line-height: 1.22;
  letter-spacing: -0.035em;
}
h2, section > strong:first-child {
  display: block;
  margin: 0 0 0.55rem;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}
h3 { margin: 0 0 0.25rem; font-size: 0.98rem; }
.eyebrow {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
}
.lead, .muted { color: var(--muted); }
.lead { margin: 0; font-size: 1.05rem; }

.badges, .pills, .row, .links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.badges { margin: 0.85rem 0 0.7rem; }
.badge, .pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font-size: 0.86rem;
  font-weight: 650;
  background: #fff;
  border: 1px solid var(--line);
}
.badge.quiet {
  background: rgba(255,255,255,0.55);
  color: var(--muted);
  border: 1px solid var(--line);
  box-shadow: none;
}
.badge { color: #0369a1; background: var(--cyan-soft); border-color: #bae6fd; }
.pill b { color: var(--cyan); font-weight: 760; }
.pill.warn b { color: var(--warn); }

.keys {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0;
}
.keys div, .facts article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.7rem 0.8rem 0.65rem;
}
.keys dt { font-weight: 760; color: var(--cyan); }
.keys dd { margin: 0.15rem 0 0; color: var(--ink); }

.flow { list-style: none; margin: 0.2rem 0 0; padding: 0; }
.flow li {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: 0.75rem;
  position: relative;
  padding-bottom: 0.85rem;
}
.flow li:last-child { padding-bottom: 0; }
.flow li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 1.22rem;
  top: 2.45rem;
  bottom: 0.15rem;
  width: 2px;
  background: linear-gradient(#e8c872, #cbd5e1);
}
.n {
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--cyan);
  color: #fff;
  font-weight: 760;
  box-shadow: 0 8px 16px rgba(2, 132, 199, 0.28);
}
.flow h3 { margin: 0.15rem 0 0.1rem; }
.flow p { margin: 0; color: var(--muted); }

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.facts article h3 { color: #0c4a6e; }
.facts article p { margin: 0; color: var(--ink); }
.facts article.warn {
  background: var(--warn-soft);
  border-color: #fcd34d;
}
.facts article.warn h3 { color: var(--warn-ink); }

label { display: block; margin: 0.7rem 0 0.28rem; font-weight: 680; font-size: 0.92rem; }
input, select {
  width: 100%;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: var(--ink);
  border-radius: 12px;
  padding: 0.72rem 0.8rem;
  font: inherit;
}
input:focus, select:focus {
  outline: 3px solid rgba(2, 132, 199, 0.25);
  border-color: var(--cyan);
}
.row > div { flex: 1 1 180px; min-width: 0; }
.row > div label { margin-top: 0; }

button, .links a.btn {
  appearance: none;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 16px;
  padding: 0.78rem 0.85rem 0.78rem 1.15rem;
  font: inherit;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
  text-shadow: none;
  color: #fff;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(255,255,255,0.38), transparent 46%),
    linear-gradient(135deg, #22d3ee 0%, #0ea5e9 38%, #2563eb 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.55),
    0 0 0 1px rgba(14, 165, 233, 0.18),
    0 14px 32px -10px rgba(37, 99, 235, 0.55);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
button::before, .links a.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 36%, rgba(255,255,255,0.38) 48%, transparent 60%);
  transform: translateX(-70%);
  pointer-events: none;
}
button:hover:not(:disabled)::before, .links a.btn:hover::before {
  transform: translateX(55%);
  transition: transform 0.55s ease;
}
button.secondary {
  color: #0c4a6e;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(186, 230, 253, 0.95);
  box-shadow: inset 0 1px 0 #fff, 0 8px 18px -12px rgba(15, 23, 42, 0.25);
  backdrop-filter: blur(8px);
}
button.secondary::before { display: none; }
button:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
button:hover:not(:disabled), .links a.btn:hover {
  color: #fff;
  filter: none;
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.7),
    0 0 0 1px rgba(34, 211, 238, 0.35),
    0 18px 36px -12px rgba(14, 165, 233, 0.7);
}
button.secondary:hover:not(:disabled) {
  color: #0369a1;
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 #fff, 0 12px 22px -14px rgba(2, 132, 199, 0.4);
}
.links { margin-top: 1.15rem; align-items: center; gap: 0.5rem; }
.links a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  border-radius: 16px;
  font-weight: 680;
  letter-spacing: -0.03em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.links a:not(.btn) {
  color: #0f172a;
  padding: 0.5rem 0.9rem;
  background: rgba(255,255,255,0.62);
  border: 1px solid rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 8px 18px -14px rgba(15, 23, 42, 0.35);
}
.links a:not(.btn):hover {
  color: #0369a1;
  transform: translateY(-1px);
  background: rgba(255,255,255,0.92);
  border-color: #7dd3fc;
  box-shadow: inset 0 1px 0 #fff, 0 12px 24px -14px rgba(14, 165, 233, 0.45);
}
.links a.btn::after {
  content: "";
  width: 1.55rem;
  height: 1.55rem;
  margin-left: 0.7rem;
  border-radius: 999px;
  flex: 0 0 auto;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8h9M8.5 4.2 12.4 8 8.5 11.8' fill='none' stroke='white' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 0.85rem no-repeat,
    rgba(255,255,255,0.16);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.38);
}

.addr, .amount {
  margin-top: 0.35rem;
  padding: 0.85rem 0.9rem;
  border-radius: 14px;
  background: #f0f9ff;
  border: 1px solid #7dd3fc;
  word-break: break-all;
  font-size: 1rem;
  letter-spacing: -0.01em;
}
.amount { font-size: 1.45rem; font-weight: 760; color: #0c4a6e; background: #fff; }
.qr-wrap { display: flex; gap: 0.9rem; align-items: flex-start; flex-wrap: wrap; }
.keybox {
  margin-top: 0.8rem;
  padding: 0.85rem;
  border-radius: 16px;
  background: var(--ok-soft);
  border: 1px solid #86efac;
}
.warn, p.warn { color: var(--warn-ink); }
.err { color: #b91c1c; }
.ok { color: var(--ok); }
.callout {
  margin: 0.7rem 0 0;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  background: var(--warn-soft);
  border: 1px solid #fcd34d;
  color: var(--warn-ink);
}
details {
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 0.7rem 0.85rem;
}
details + details { margin-top: 0.5rem; }
summary { cursor: pointer; font-weight: 740; }
details p { margin: 0.45rem 0 0; }
dl.plain { margin: 0; }
dl.plain dt { font-weight: 720; margin-top: 0.55rem; }
dl.plain dd { margin: 0.1rem 0 0; }
.foot, p.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin: 0.95rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(226, 232, 240, 0.95);
  color: var(--muted);
  font-size: 0.92rem;
}
.foot .note { font-weight: 650; margin-right: 0.15rem; }
.foot a, p.nav a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #0f172a;
  font-weight: 650;
  padding: 0.42rem 0.78rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: inset 0 1px 0 #fff, 0 8px 16px -14px rgba(15, 23, 42, 0.55);
}
.foot a:hover, p.nav a:hover {
  color: #0369a1;
  background: #fff;
  transform: translateY(-1px);
}
.foot a.quiet {
  color: #92400e;
  background: rgba(255, 251, 235, 0.92);
  border-color: rgba(232, 200, 114, 0.85);
}
.foot a.quiet:hover { color: #78350f; background: #fffbeb; }
@media (max-width: 720px) {
  .keys, .facts { grid-template-columns: 1fr; }
  .top { align-items: flex-start; flex-direction: column; }
}


/* Pay path chooser: must beat global `button { color:#fff }` */
.path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0.85rem 0 0.35rem;
}
button.path-card,
a.path-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.4rem;
  text-align: left;
  width: 100%;
  min-height: 7.5rem;
  padding: 1.05rem 1.1rem;
  border-radius: 18px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff !important;
  color: #0f172a !important;
  box-shadow: 0 8px 20px -16px rgba(15, 23, 42, 0.35) !important;
  cursor: pointer;
  text-decoration: none;
  text-shadow: none !important;
  font: inherit;
  font-weight: 500;
  letter-spacing: normal;
  line-height: 1.45;
  filter: none !important;
  transform: none !important;
  isolation: auto;
  overflow: visible;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
button.path-card::before,
a.path-card::before {
  content: none !important;
  display: none !important;
}
button.path-card:hover,
button.path-card:hover:not(:disabled),
a.path-card:hover {
  color: #0f172a !important;
  border-color: #38bdf8;
  background: #f8fafc !important;
  box-shadow: 0 12px 24px -16px rgba(2, 132, 199, 0.45) !important;
  transform: none !important;
  filter: none !important;
}
button.path-card.is-active,
button.path-card.is-active:hover:not(:disabled) {
  color: #0f172a !important;
  border-color: #0284c7;
  background: #eff6ff !important;
  box-shadow: 0 12px 28px -14px rgba(2, 132, 199, 0.55) !important;
}
button.path-card .path-kicker,
a.path-card .path-kicker {
  display: block;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0284c7 !important;
}
button.path-card strong,
a.path-card strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 780;
  letter-spacing: -0.02em;
  color: #0f172a !important;
}
button.path-card .path-desc,
a.path-card .path-desc {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: #475569 !important;
}
button.path-card .path-desc em,
a.path-card .path-desc em {
  font-style: normal;
  color: #92400e !important;
  font-weight: 750;
}
a.path-card-link,
a.path-card-link:hover {
  border-style: dashed;
  border-color: #f59e0b;
  background: #fffbeb !important;
}
a.path-card-link .path-kicker { color: #92400e !important; }

label.consent {
  display: flex !important;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.65rem;
  width: 100%;
  max-width: 100%;
  margin: 0.9rem 0 0;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.5;
  color: #0f172a;
  box-sizing: border-box;
}
label.consent > input[type="checkbox"] {
  flex: 0 0 auto;
  width: 1.1rem;
  height: 1.1rem;
  margin: 0.2rem 0 0;
}
label.consent > span {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  color: #0f172a;
  overflow-wrap: anywhere;
  word-break: keep-all;
}
label.consent .muted {
  color: #475569;
}

.path-panel > h2:first-child { margin-top: 0.2rem; }

@media (max-width: 760px) {
  .path-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  button, .links a, .foot a, button::before, .links a.btn::before { transition: none; }
  button:hover:not(:disabled), .links a:hover, .foot a:hover,
  button:hover:not(:disabled)::before, .links a.btn:hover::before { transform: none; }
}

.top-side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.55rem 0.85rem;
}
.langpick {
  font: inherit;
  font-size: 0.86rem;
  font-weight: 650;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  max-width: 12rem;
}
.addr, #amount {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: left;
}
html[lang="ar"] body {
  font-family: "Geeza Pro", "Noto Naskh Arabic", "SF Arabic", "Segoe UI", sans-serif;
}
html[lang="zh"] body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}
html[lang="ja"] body {
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", "Segoe UI", sans-serif;
}
html[lang="ko"] body {
  font-family: "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Segoe UI", sans-serif;
}
