/* Skunkworks Academy checkout styling. Version: 2026-06-25 */
:root {
  color-scheme: dark light;
  --bg: #05070d;
  --surface: rgba(15, 23, 42, .88);
  --surface-2: #111827;
  --text: #f8fafc;
  --muted: #a7b3c7;
  --line: rgba(148, 163, 184, .22);
  --blue: #0f62fe;
  --cyan: #06b6d4;
  --green: #22c55e;
  --amber: #f59e0b;
  --shadow: 0 28px 90px rgba(0, 0, 0, .38);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f8fc;
    --surface: rgba(255, 255, 255, .94);
    --surface-2: #f1f5f9;
    --text: #07111f;
    --muted: #475569;
    --line: rgba(15, 23, 42, .14);
    --shadow: 0 28px 80px rgba(15, 23, 42, .13);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "IBM Plex Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% -10%, rgba(15, 98, 254, .30), transparent 34rem),
    radial-gradient(circle at 92% 8%, rgba(6, 182, 212, .22), transparent 30rem),
    var(--bg);
  color: var(--text);
}

.checkout-shell {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.checkout-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .45fr);
  gap: 24px;
  align-items: end;
  padding: clamp(56px, 8vw, 104px) 0 34px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #a5f3fc;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12px;
  font-weight: 900;
}

h1, h2, h3 { letter-spacing: -.045em; }
h1 { max-width: 940px; margin: 0; font-size: clamp(42px, 7vw, 84px); line-height: .92; }
h2 { margin: 0; font-size: clamp(28px, 4vw, 46px); line-height: 1; }
h3 { margin: 0 0 8px; font-size: 24px; }

.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.5;
}

.trust-panel, .customer-panel, .plan-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.trust-panel { padding: 22px; }
.trust-panel strong { display: block; margin-bottom: 10px; }
.trust-panel ul { margin: 0; padding-left: 18px; color: var(--muted); line-height: 1.55; }

.customer-panel {
  display: grid;
  grid-template-columns: minmax(0, .85fr) repeat(2, minmax(220px, 1fr));
  gap: 16px;
  align-items: end;
  padding: 22px;
  margin-bottom: 34px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

input {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  color: var(--text);
  background: rgba(255, 255, 255, .04);
  font: inherit;
  font-weight: 750;
}

.section-head {
  display: grid;
  gap: 8px;
  margin: 26px 0 18px;
}

#status { color: var(--muted); font-weight: 800; }

.plan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: 72px;
}

.plan-card {
  min-height: 430px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.price-block {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.price-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.price-line strong { font-size: 28px; letter-spacing: -.04em; }
.price-line span { color: var(--muted); font-size: 13px; font-weight: 800; }

.plan-card p { margin: 0; color: var(--muted); line-height: 1.5; }
.plan-card ul { margin: 18px 0; padding-left: 18px; color: var(--muted); line-height: 1.55; }

.gateway-actions {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

button {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  color: var(--text);
  background: rgba(255,255,255,.04);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

button:hover { border-color: color-mix(in srgb, var(--cyan) 58%, var(--line)); }
button[data-gateway="payfast"] { color: #052e16; background: var(--green); border-color: var(--green); }
button[data-gateway="paypal"] { color: #fff; background: linear-gradient(135deg, var(--blue), var(--cyan)); border: 0; }
button:disabled { cursor: wait; opacity: .72; }

.checkout-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  color: var(--muted);
}

.footer-inner { display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
.checkout-footer a { color: inherit; font-weight: 850; text-decoration: none; }

.notice {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: var(--surface);
  color: var(--muted);
}

@media (max-width: 1080px) {
  .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .customer-panel { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .checkout-shell { width: min(100% - 22px, 1180px); }
  .checkout-hero { grid-template-columns: 1fr; padding-top: 46px; }
  .plan-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
}
