:root {
  --bg: #fcf7f9;
  --ink: #1a1220;
  --muted: #8a7388;
  --card: #fff;
  --accent: #c43b7a;
  --accent-ink: #fff;
  --line: color-mix(in srgb, #1a1220 8%, transparent);
  --font: system-ui, -apple-system, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.page {
  flex: 1 0 auto;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 16px 16px 32px;
}

a {
  color: var(--accent);
}

.splash {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px 24px;
  text-align: center;
}

.splash__logo {
  display: block;
  width: 70%;
  max-width: 420px;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.splash__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 28px;
  width: min(100%, 420px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  flex: 1 1 160px;
}

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn--ghost {
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  color: var(--ink);
}

.splash__bot {
  margin-top: 18px;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
}

.pay-banner {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.4;
  text-align: center;
}

.pay-banner--ok {
  background: #1b8a3e;
  color: #fff;
}

.pay-banner--fail {
  background: #c62828;
  color: #fff;
}

.pay {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px 24px;
  text-align: center;
}

.pay__logo {
  display: block;
  width: 42%;
  max-width: 220px;
  height: auto;
  margin-bottom: 8px;
}

.pay h1 {
  font-size: 1.35rem;
  margin: 8px 0 10px;
}

.pay p {
  margin: 0;
  max-width: 28rem;
  color: var(--muted);
  line-height: 1.45;
}

.pay .splash__actions,
.pay__actions {
  margin-top: 22px;
  flex-direction: column;
  flex-wrap: nowrap;
  width: min(100%, 320px);
}

.pay__actions .btn {
  flex: 0 0 auto;
  width: 100%;
}

.legal p,
.legal li {
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--ink);
}

.legal ul {
  margin: 0.35rem 0 0.85rem;
  padding-left: 1.2rem;
}

.legal h2 {
  font-size: 1.05rem;
  margin: 1.25rem 0 0.5rem;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 0.75rem 0 1rem;
}

.legal th, .legal td {
  border-bottom: 1px solid var(--line);
  padding: 0.4rem 0.35rem;
  text-align: left;
}

.site-footer {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  justify-content: center;
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px));
  font-size: 0.85rem;
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.site-footer a {
  color: var(--muted);
}

.back {
  display: inline-block;
  margin: 4px 0 16px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
}

.back:hover {
  color: var(--ink);
}

h1 {
  font-size: 1.25rem;
  margin: 0 0 16px;
}

.card {
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 0 var(--line);
  margin-bottom: 16px;
}

.row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  border-top: 1px solid var(--line);
}

.row:first-child {
  border-top: 0;
}

.row__title {
  font-weight: 600;
}

.row__sub {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 2px;
}

.hint {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.4;
  padding: 0 4px;
}

.guide {
  padding: 4px 0 12px;
  min-width: 0;
}

.guide-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 16px;
  -webkit-overflow-scrolling: touch;
  padding: 4px 16px 8px;
  scrollbar-width: none;
  position: relative;
  width: 100%;
  min-width: 0;
}

.guide-track::-webkit-scrollbar {
  display: none;
}

.guide-slide {
  flex: 0 0 min(70%, 248px);
  margin: 0;
  scroll-snap-align: center;
}

.guide-shot {
  display: block;
  width: 100%;
  height: auto;
  max-height: 68dvh;
  object-fit: contain;
  border-radius: 18px;
  background: #111;
  user-select: none;
  -webkit-user-drag: none;
}

.guide-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  padding: 8px 0 4px;
}

.guide-dot {
  width: 7px;
  height: 7px;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--muted) 55%, transparent);
  padding: 0;
}

.guide-dot--active {
  width: 18px;
  border-radius: 4px;
  background: var(--accent);
}

.guide-steps {
  list-style: none;
  margin: 8px 16px 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guide-step {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.95rem;
  line-height: 1.35;
}

.guide-step-n {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 650;
  color: #fff;
  background: var(--accent);
}

details {
  border-top: 1px solid var(--line);
  padding: 0;
}

details:first-child {
  border-top: 0;
}

summary {
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 600;
  list-style: none;
}

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

.faq-a {
  padding: 0 16px 14px;
  color: var(--muted);
  line-height: 1.4;
}
