:root {
  --brand: #b23232;
  --brand-hover: #9a2a2a;
  --cream: #faf7f2;
  --stone-900: #1c1917;
  --stone-600: #57534e;
  --stone-500: #78716c;
  --stone-200: #e7e5e4;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Be Vietnam Pro", system-ui, -apple-system, sans-serif;
  color: var(--stone-900);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

.dot-bg {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.35;
  background-image: radial-gradient(circle at 1px 1px, rgba(28, 25, 23, 0.07) 1px, transparent 0);
  background-size: 28px 28px;
}

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgba(231, 229, 228, 0.8);
  background: rgba(250, 247, 242, 0.9);
  backdrop-filter: blur(8px);
}

.site-header-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #8f2828, var(--brand));
  color: #fff8e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 8px 20px rgba(178, 50, 50, 0.2);
}

.brand-title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.brand-sub {
  margin: 0;
  font-size: 0.75rem;
  color: var(--stone-500);
}

.site-main {
  position: relative;
  z-index: 10;
}

.site-footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid rgba(231, 229, 228, 0.8);
  background: var(--cream);
}

.site-footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--stone-500);
}

@media (min-width: 640px) {
  .site-footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.section {
  border-bottom: 1px solid rgba(231, 229, 228, 0.8);
}

.container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.container-narrow {
  max-width: 48rem;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}

.container-center {
  max-width: 48rem;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
  text-align: center;
}

.section-label {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--stone-500);
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.02em;
}

.article {
  max-width: 42rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.article-header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--stone-200);
}

.article-title {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.15;
  font-weight: 600;
  color: var(--stone-900);
  letter-spacing: -0.02em;
}

.article-body p {
  margin: 0 0 1.25rem;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--stone-600);
}

.article-body p:last-child {
  margin-bottom: 0;
}

.article-body .article-caps {
  color: var(--brand);
  font-weight: 700;
}

.article-list {
  margin: 0 0 1.25rem;
  padding-left: 1.35rem;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--stone-600);
}

.article-list li {
  margin-bottom: 0.65rem;
}

.article-list li:last-child {
  margin-bottom: 0;
}

.btn-header {
  padding: 0.6rem 1.1rem;
  font-size: 0.8rem;
}

.btn-block {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
}

.footer-link {
  color: inherit;
  text-decoration: none;
}

.footer-link:hover {
  color: var(--stone-900);
}

.tx-box {
  border-radius: 1rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  padding: 1rem 1.25rem;
}

.tx-box-label {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #92400e;
}

.qr-amount {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
}

.qr-amount span {
  color: var(--brand);
}

.qr-bank {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: var(--stone-500);
}

.qr-hint {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  color: var(--stone-500);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  line-height: 1.15;
  font-weight: 600;
}

.lead {
  margin: 1.25rem 0 0;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--stone-600);
}

.text {
  margin: 1rem 0 0;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--stone-600);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(178, 50, 50, 0.2);
  background: rgba(178, 50, 50, 0.08);
  font-size: 0.75rem;
  font-weight: 600;
  color: #8f2828;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.card {
  border-radius: 1.75rem;
  border: 1px solid var(--stone-200);
  background: #fff;
  padding: 1.5rem;
  box-shadow: 0 20px 60px rgba(28, 25, 23, 0.06);
}

@media (min-width: 640px) {
  .card {
    padding: 2rem;
  }
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.stat-box {
  border-radius: 1rem;
  background: var(--cream);
  padding: 0.75rem 1rem;
}

.stat-value {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.stat-value.brand {
  color: var(--brand);
}

.stat-label {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  color: var(--stone-500);
}

.feature-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}

@media (min-width: 768px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  border-radius: 1.5rem;
  border: 1px solid var(--stone-200);
  background: #fff;
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.feature-icon {
  display: inline-flex;
  border-radius: 1rem;
  background: rgba(178, 50, 50, 0.1);
  color: var(--brand);
  padding: 0.75rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
}

.feature-card p {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--stone-600);
}

.pricing-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}

@media (min-width: 1024px) {
  .pricing-grid {
    grid-template-columns: 1fr 1.1fr;
  }
}

.price-card {
  border-radius: 1.5rem;
  border: 1px solid var(--stone-200);
  background: #fff;
  padding: 1.5rem 2rem;
}

.price-card.highlight {
  border: 2px solid var(--brand);
  background: var(--brand);
  color: #fff;
}

.price-old {
  margin: 0;
  font-size: 0.875rem;
  color: var(--stone-500);
  text-decoration: line-through;
}

.price-card.highlight .price-old {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: line-through;
}

.price-tag {
  margin: 0.5rem 0 0;
  font-size: 2.5rem;
  font-weight: 600;
}

.price-note {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--stone-600);
}

.price-card.highlight .price-note {
  color: rgba(255, 255, 255, 0.9);
}

.steps-wrap {
  margin: 1.5rem 0 1.25rem;
  border-radius: 1.75rem;
  border: 1px solid var(--stone-200);
  background: #fff;
  padding: 1.25rem;
  box-shadow: 0 20px 60px rgba(28, 25, 23, 0.06);
}

@media (min-width: 640px) {
  .steps-wrap {
    padding: 1.5rem;
  }
}

.steps-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.brand-logo-img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  object-fit: cover;
  flex-shrink: 0;
}

.step-card {
  border-radius: 1.5rem;
  border: 1px solid var(--stone-200);
  background: #fff;
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.step-num {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--brand);
}

.step-card h3 {
  margin-top: 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.step-card p {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--stone-600);
}

.topic-wrap {
  margin-top: 2rem;
  border-radius: 1.5rem;
  border: 1px solid var(--stone-200);
  background: #fff;
  padding: 1.5rem 2rem;
}

.topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.topic-tag {
  border-radius: 9999px;
  border: 1px solid var(--stone-200);
  background: var(--cream);
  padding: 0.35rem 0.75rem;
  font-size: 0.875rem;
  color: #44403c;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: 9999px;
  background: var(--brand);
  color: #fff;
  padding: 0.875rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(178, 50, 50, 0.28);
  transition: background 0.15s ease;
}

.btn-primary:hover {
  background: var(--brand-hover);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid #d6d3d1;
  background: rgba(255, 255, 255, 0.8);
  color: #292524;
  padding: 0.875rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.btn-outline:hover {
  border-color: #a8a29e;
  background: #fff;
}

.btn-download {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn-download:hover {
  transform: scale(1.01);
  filter: brightness(1.03);
}

.btn-download.main {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 12px 30px rgba(178, 50, 50, 0.28);
}

.btn-download.supplement {
  border: 1px solid var(--stone-200);
  background: #fff;
  color: var(--stone-900);
}

.check-list {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
  color: var(--stone-600);
  line-height: 1.65;
}

.check-list li::before {
  content: "✓";
  color: var(--brand);
  font-weight: 700;
  flex-shrink: 0;
}

.register-panel {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--stone-200);
}

.form-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.form-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #44403c;
  margin-bottom: 0.35rem;
}

.form-field input {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid #d6d3d1;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
}

.form-field input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(178, 50, 50, 0.15);
}

.form-error {
  display: none;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: #b91c1c;
}

.form-error.visible {
  display: block;
}

.form-note {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--stone-500);
  text-align: center;
}

.payment-panel {
  display: none;
  margin-top: 2rem;
}

.payment-panel.visible {
  display: block;
}

.qr-box {
  margin-top: 1.25rem;
  border-radius: 1.5rem;
  border: 1px solid var(--stone-200);
  background: #fff;
  padding: 1.5rem;
  text-align: center;
}

.tx-code {
  margin: 0.75rem 0 0;
  font-family: ui-monospace, monospace;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--brand);
  user-select: all;
}

.qr-image {
  margin: 1.25rem auto 0;
  border-radius: 0.75rem;
  border: 1px solid #f5f5f4;
}

.poll-status {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--stone-600);
}

.hidden {
  display: none !important;
}

.cta-center {
  text-align: center;
  padding: 4rem 1.5rem 5rem;
}

.cta-center .btn-primary {
  font-size: 1rem;
  padding: 1rem 2rem;
}

.thank-card {
  max-width: 36rem;
  margin: 0 auto;
  border-radius: 1.75rem;
  border: 1px solid rgba(231, 229, 228, 0.8);
  background: #fff;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(28, 25, 23, 0.08);
  text-align: center;
}

.thank-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.5rem;
  border-radius: 9999px;
  background: #d1fae5;
  color: #047857;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.download-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 2rem;
}

.gate-msg {
  max-width: 28rem;
  margin: 1.5rem auto 0;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 0.875rem;
  text-align: center;
}

.gate-msg a {
  color: inherit;
  font-weight: 600;
}
