:root {
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --success: #16a34a;
  --warning: #d97706;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
}

.site-header__inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  text-decoration: none;
}

.site-logo img {
  width: 36px;
  height: 36px;
}

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

.site-nav a {
  text-decoration: none;
  color: #334155;
}

.site-nav__button {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff !important;
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 72px;
}

.hero {
  max-width: 720px;
  margin-bottom: 28px;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 44px);
  line-height: 1.1;
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.purchase-card,
.result-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 28px;
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.08);
  padding: 28px;
}

.form-row {
  margin-bottom: 22px;
}

.form-label,
.section-title {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  color: #374151;
  font-weight: 700;
}

.input,
.textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  padding: 14px 16px;
  font-size: 15px;
  color: var(--text);
}

.input:focus,
.textarea:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.65);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.helper-text {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.plan-card {
  position: relative;
  min-height: 210px;
  border-radius: 28px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: #f3f4f6;
  padding: 24px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.plan-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
}

.plan-card.is-selected {
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.14);
  background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
}

.plan-card__price {
  margin-top: 10px;
  font-size: clamp(44px, 7vw, 72px);
  font-weight: 800;
  line-height: 1;
}

.plan-card__name {
  margin-top: 16px;
  font-size: 24px;
  font-weight: 600;
}

.button-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  padding: 14px 22px;
  min-height: 48px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.button--primary {
  background: var(--brand);
  color: #fff;
}

.button--primary:hover {
  background: var(--brand-dark);
}

.button--secondary {
  background: #e0e7ff;
  color: #1e3a8a;
}

.inline-error {
  margin-top: 12px;
  color: #b91c1c;
  font-size: 14px;
}

.inline-success {
  margin-top: 12px;
  color: #166534;
  font-size: 14px;
}

.result-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
}

.detail-list {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px 16px;
  margin-bottom: 24px;
}

.detail-list dt {
  color: var(--muted);
}

.detail-list dd {
  margin: 0;
  word-break: break-all;
}

.status-panel {
  border-radius: 20px;
  background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%);
  border: 1px solid #dbeafe;
  padding: 20px;
  margin-bottom: 20px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}

.status-pill--pending {
  background: #fff7ed;
  color: var(--warning);
}

.status-pill--done {
  background: #ecfdf5;
  color: var(--success);
}

.payment-panel {
  margin: 0 0 18px;
  padding: 30px 28px 26px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #dbeafe;
  border-radius: 24px;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.08);
}

.payment-panel__hint {
  color: #334155;
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 8px;
}

.payment-panel__actions {
  margin-top: 16px;
  margin-bottom: 8px;
}

.payment-panel .button {
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.code-block {
  min-height: 180px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.6;
}

.note-card {
  border-radius: 20px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  padding: 18px;
  color: #334155;
  font-size: 14px;
  line-height: 1.8;
}

.hidden {
  display: none !important;
}

@media (max-width: 920px) {
  .plan-grid,
  .result-layout {
    grid-template-columns: 1fr;
  }

  .site-nav {
    display: none;
  }
}

