/* Growzenix payment page. Palette follows growzenix.agency (dark #06040f + violet).
   To retune the look, change the variables below. */
:root {
  --bg: #06040f;
  --bg-soft: #0c0819;
  --surface: #120d25;
  --surface-2: #19122f;
  --line: rgba(255, 255, 255, .10);
  --text: #f5f3fc;
  --muted: #a8a2c0;
  --accent: #8b5cf6;
  --accent-soft: #b9a1fb;
  --danger: #ff7a90;
  --ok: #5fe3a1;
  --radius: 18px;
  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(900px 520px at 85% -10%, rgba(139, 92, 246, .22), transparent 60%),
    radial-gradient(700px 480px at -10% 40%, rgba(139, 92, 246, .10), transparent 60%),
    var(--bg);
}
a { color: var(--accent-soft); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* Header */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: min(1180px, 100% - 2rem); margin: 0 auto; padding: 1.25rem 0;
}
.brand img { display: block; height: 38px; width: auto; }
.site-header nav { display: flex; align-items: center; gap: 1.25rem; }
.site-header nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; }
.site-header nav a:hover { color: #fff; }
.btn-ghost { border: 1px solid var(--line); padding: .55rem 1rem; border-radius: 999px; color: var(--text) !important; }
.btn-ghost:hover { border-color: var(--accent); }

/* Layout */
.layout {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
  width: min(1180px, 100% - 2rem);
  margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 4rem) 0 4rem;
}

/* Intro */
h1 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 0 0 1.25rem;
  max-width: 14ch;
}
.lead { color: var(--muted); font-size: 1.1rem; max-width: 46ch; margin: 0 0 2.25rem; }

.steps { list-style: none; counter-reset: step; margin: 0 0 2.25rem; padding: 0; display: grid; gap: 1.1rem; max-width: 46ch; }
.steps li { counter-increment: step; position: relative; padding-left: 3.1rem; display: grid; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: .1rem;
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 600; font-size: .9rem;
  color: var(--accent-soft); border: 1px solid rgba(139, 92, 246, .5); background: rgba(139, 92, 246, .1);
}
.steps strong { font-weight: 700; }
.steps span { color: var(--muted); font-size: .95rem; }

.assurance {
  display: flex; gap: .9rem; align-items: flex-start;
  max-width: 46ch; padding: 1rem 1.1rem;
  border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .02);
  color: var(--ok);
}
.assurance p { margin: 0; color: var(--muted); font-size: .92rem; }
.help { color: var(--muted); font-size: .92rem; max-width: 52ch; margin-top: 1.5rem; }

/* Card */
.card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(1.25rem, 4vw, 2.25rem);
  box-shadow: 0 30px 80px -30px rgba(139, 92, 246, .35);
}
.sandbox {
  margin: 0 0 1.25rem; padding: .6rem .9rem; border-radius: 10px;
  background: rgba(255, 196, 61, .1); border: 1px solid rgba(255, 196, 61, .35);
  color: #ffd77a; font-size: .9rem;
}

/* Amount: the main control, sized like a ledger entry */
.amount-block { margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.amount-block > label { display: block; font-weight: 500; color: var(--muted); font-size: .95rem; margin-bottom: .5rem; }
.amount-row { display: flex; align-items: stretch; gap: .75rem; }
.amount-row select {
  flex: 0 0 auto; width: auto; min-width: 5.5rem;
  font-family: var(--font-head); font-weight: 600; font-size: 1.05rem;
  padding: 0 .9rem; cursor: pointer;
}
.amount-row input {
  flex: 1; min-width: 0;
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(2rem, 7vw, 2.9rem); line-height: 1.1;
  padding: .55rem .9rem; letter-spacing: -.01em;
}

.field { margin-bottom: 1.15rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { display: block; font-weight: 500; font-size: .95rem; margin-bottom: .4rem; }
.optional { color: var(--muted); font-weight: 400; }

input, select {
  width: 100%;
  background: var(--bg-soft);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .8rem .95rem;
  font: inherit;
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder { color: #6d6786; }
input:hover, select:hover { border-color: rgba(255, 255, 255, .22); }
input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(139, 92, 246, .28); }
input[aria-invalid="true"] { border-color: var(--danger); }
select option { background: var(--surface); color: var(--text); }

.hint { margin: .5rem 0 0; color: var(--muted); font-size: .85rem; }
.error { margin: .35rem 0 0; color: var(--danger); font-size: .88rem; min-height: 0; }
.error:empty { display: none; }

.summary {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  margin: 1.5rem 0 1rem; padding: 1rem 0 0; border-top: 1px solid var(--line);
}
.summary span { color: var(--muted); }
.summary strong { font-family: var(--font-head); font-size: 1.35rem; font-weight: 600; }

.paypal-wrap { min-height: 56px; }
.loading { color: var(--muted); margin: .5rem 0; font-size: .95rem; }
.form-message { margin: .9rem 0 0; font-size: .95rem; }
.form-message:empty { display: none; }
.form-message.is-error { color: var(--danger); }
.form-message.is-info { color: var(--muted); }

/* Success */
.success { text-align: center; padding: 1rem 0; color: var(--ok); }
.success:focus { outline: none; }
.success h2 { font-family: var(--font-head); font-size: 1.7rem; margin: .75rem 0 .5rem; color: var(--text); }
.success p { color: var(--muted); margin: 0 auto 1.5rem; max-width: 38ch; }
.success dl { margin: 0 0 1.75rem; text-align: left; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.success dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 1rem; }
.success dl div + div { border-top: 1px solid var(--line); }
.success dt { color: var(--muted); }
.success dd { margin: 0; color: var(--text); font-weight: 500; word-break: break-all; text-align: right; }
.btn {
  display: inline-block; padding: .85rem 1.6rem; border-radius: 999px;
  background: var(--accent); color: #fff; text-decoration: none; font-weight: 700;
  transition: background .15s;
}
.btn:hover { background: #7c47ee; color: #fff; }

/* Footer */
.site-footer {
  width: min(1180px, 100% - 2rem); margin: 0 auto; padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .75rem;
  color: var(--muted); font-size: .9rem;
}
.site-footer p { margin: 0; }
.site-footer a { color: var(--muted); margin-left: 1rem; }
.site-footer a:first-child { margin-left: 0; }
.noscript { text-align: center; color: var(--danger); padding: 1rem; }

@media (max-width: 920px) {
  .layout { grid-template-columns: 1fr; }
  h1 { max-width: none; }
  .site-header nav a:not(.btn-ghost) { display: none; }
}
@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .amount-row { flex-direction: column; }
  .amount-row select { padding: .7rem .9rem; }
  .btn-ghost { padding: .5rem .8rem; font-size: .85rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
