/* The Digital Genome — modern checkout
   Brand blue: #0369a1 */

:root {
  --blue: #0369a1;
  --blue-2: #0284c7;
  --blue-deep: #0c4a6e;
  --ink: #0b1220;
  --muted: #5b6b7c;
  --line: rgba(3, 105, 161, 0.16);
  --white: #ffffff;
  --radius: 20px;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --shadow: 0 24px 60px rgba(3, 105, 161, 0.14);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.55;
  min-height: 100vh;
  background: #eef7fc;
}

.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 0% 0%, rgba(14, 165, 233, 0.35), transparent 60%),
    radial-gradient(700px 480px at 100% 10%, rgba(3, 105, 161, 0.22), transparent 55%),
    radial-gradient(600px 400px at 50% 100%, rgba(125, 211, 252, 0.25), transparent 50%),
    linear-gradient(180deg, #f3faff 0%, #e8f4fb 40%, #f7fbfe 100%);
}

a { color: var(--blue); }
a:hover { color: var(--blue-2); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--blue-deep);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-logo { height: 40px; width: auto; }

.header-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--blue);
  padding: 9px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
}

.header-link:hover { background: #e0f2fe; }

/* Layout */
.checkout {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 36px 20px 80px;
}

.eyebrow {
  margin: 0 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
  margin-bottom: 36px;
}

.hero h1 {
  margin: 0 0 6px;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--blue);
}

.hero-title {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: var(--blue-deep);
  max-width: 14ch;
}

.hero-sub {
  margin: 0;
  max-width: 46ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.trust-row {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--blue-deep);
}

.trust-row i { color: var(--blue); }

.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-stack {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 16 / 10;
}

.viz-card {
  position: absolute;
  inset: 12% 8% 8% 8%;
  border-radius: 18px;
  background: linear-gradient(135deg, #0369a1, #38bdf8);
  box-shadow: var(--shadow);
}

.viz-card-back {
  transform: rotate(-8deg) translate(-10px, 8px);
  opacity: 0.35;
}

.viz-card-mid {
  transform: rotate(5deg) translate(12px, -4px);
  opacity: 0.5;
  background: linear-gradient(135deg, #0c4a6e, #0284c7);
}

.viz-card-img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 30px 60px rgba(12, 74, 110, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.55);
  animation: floatCard 5.5s ease-in-out infinite;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-visual-caption {
  margin: 14px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}

/* Panels */
.panel {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 28px;
  padding: 28px clamp(18px, 3vw, 28px);
  box-shadow: var(--shadow);
  margin-bottom: 22px;
}

.step-label {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(3, 105, 161, 0.3);
}

.step-label h2 {
  margin: 0 0 4px;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--blue-deep);
}

.step-label p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Plans */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 18px 18px;
  border-radius: 18px;
  border: 1.5px solid #dbe7f0;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.plan:hover {
  border-color: rgba(3, 105, 161, 0.45);
  transform: translateY(-2px);
}

.plan input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.plan-check {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  display: grid;
  place-items: center;
  color: transparent;
  background: #fff;
  transition: all 0.2s;
}

.plan:has(input:checked) {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(3, 105, 161, 0.14), var(--shadow);
}

.plan:has(input:checked) .plan-check {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.plan-featured {
  border-color: rgba(3, 105, 161, 0.35);
}

.plan-ribbon {
  position: absolute;
  top: -10px;
  left: 16px;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}

.plan-badge {
  width: fit-content;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e0f2fe;
  color: var(--blue);
}

.plan-badge-mid { background: #dbeafe; color: #1d4ed8; }
.plan-badge-adv { background: #e0e7ff; color: #4338ca; }

.plan-name {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  padding-right: 28px;
}

.plan-meta {
  font-size: 0.86rem;
  color: var(--muted);
}

.plan-price {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--blue-deep);
  margin-top: 4px;
}

.plan-desc {
  font-size: 0.9rem;
  color: #567;
}

/* Checkout box */
.checkout-box {
  position: relative;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #f8fcff, #fff);
  padding: 22px;
  overflow: hidden;
}

.checkout-box.is-locked .checkout-form {
  filter: grayscale(0.15);
  opacity: 0.55;
  pointer-events: none;
  user-select: none;
}

.checkout-lock {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 3;
  place-items: center;
  text-align: center;
  padding: 24px;
  background: rgba(248, 252, 255, 0.72);
  backdrop-filter: blur(4px);
}

.checkout-box.is-locked .checkout-lock {
  display: grid;
}

.checkout-lock i {
  font-size: 1.6rem;
  color: var(--blue);
  margin-bottom: 8px;
}

.checkout-lock p {
  margin: 0;
  max-width: 28ch;
  font-weight: 600;
  color: var(--blue-deep);
}

.summary {
  padding: 14px 16px;
  border-radius: 14px;
  background: #e0f2fe;
  border: 1px solid var(--line);
  margin-bottom: 18px;
}

.summary-label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}

.summary-name {
  margin: 4px 0 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ink);
}

.summary-price {
  margin: 2px 0 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--blue-deep);
}

.field-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 8px;
}

.field-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1.5px solid #cbd5e1;
  font: inherit;
  background: #fff;
  margin-bottom: 14px;
}

.field-input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(3, 105, 161, 0.15);
}

.field-input:disabled {
  background: #f1f5f9;
  cursor: not-allowed;
}

.pay-cta {
  width: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border: none;
  border-radius: 14px;
  padding: 15px 18px;
  font: inherit;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  box-shadow: 0 14px 30px rgba(3, 105, 161, 0.3);
  cursor: pointer;
  transition: transform 0.2s, filter 0.2s, opacity 0.2s;
}

.pay-cta:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.pay-cta:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.form-hint {
  margin: 12px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}

.form-status {
  margin: 10px 0 0;
  font-size: 0.88rem;
  text-align: center;
  min-height: 1.2em;
}

.form-status.is-error { color: #b91c1c; }
.form-status.is-info { color: var(--blue); }

/* Note */
.note-strip {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, #e0f2fe, #f0f9ff);
  border: 1px solid var(--line);
  margin-bottom: 28px;
  color: var(--blue-deep);
}

.note-strip i {
  color: var(--blue);
  margin-top: 3px;
}

/* Refund */
.refund-intro {
  max-width: 540px;
  margin-bottom: 18px;
}

.refund-intro h2 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.03em;
  color: var(--blue-deep);
}

.refund-intro p { margin: 0; color: var(--muted); }

.refund-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.refund-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.refund-card i {
  color: var(--blue);
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.refund-card h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
}

.refund-card p {
  margin: 0;
  color: #567;
  font-size: 0.92rem;
}

.refund-legal {
  margin-top: 14px;
  border: 1px dashed rgba(3, 105, 161, 0.3);
  border-radius: 14px;
  padding: 4px 16px;
  background: rgba(255, 255, 255, 0.65);
}

.refund-legal summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--blue-deep);
  padding: 12px 0;
  list-style: none;
}

.refund-legal summary::-webkit-details-marker { display: none; }

.refund-legal p {
  margin: 0 0 14px;
  color: #567;
  font-size: 0.92rem;
}

/* Success / cancel shared */
.pay-result {
  max-width: 560px;
  margin: 56px auto 0;
  text-align: center;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  padding: 44px 28px;
  box-shadow: var(--shadow);
}

.pay-result-icon { font-size: 2.6rem; margin-bottom: 12px; }
.pay-result-icon.success { color: #059669; }
.pay-result-icon.cancel { color: #b45309; }
.pay-result h1 { margin: 0 0 10px; color: var(--blue-deep); font-size: 1.7rem; }
.pay-result p { margin: 0 0 12px; color: #567; }
.pay-result-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }
.pay-result-actions a {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 12px;
}
.pay-result-actions .primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  color: #fff;
}
.pay-result-actions .secondary {
  background: #fff;
  color: var(--blue);
  border: 1px solid var(--line);
}

.pay-header, .pay-brand, .pay-logo, .pay-back, .pay-main { /* legacy aliases unused */ }

.site-footer {
  padding: 22px 16px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
}

.site-footer p { margin: 0; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-title { max-width: none; }
  .plan-grid { grid-template-columns: 1fr; }
  .refund-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .card-stack { width: min(100%, 360px); }
}
