:root {
    --black: #0b0b0b;
    --ink: #fefefc;
    --muted: #b7b2aa;
    --card: #141414;
    --line: #2c2c2c;
    --orange: #ef7f2f;
    --orange-deep: #d66e22;
    --field: #0e0e0e;
    --warn: #f0b27a;
    --warn-bg: #2a1a0c;
    --danger: #ffb4a8;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    color: var(--ink);
    background:
        radial-gradient(820px 360px at 12% -8%, rgba(239, 127, 47, 0.22), transparent 62%),
        radial-gradient(520px 280px at 100% 0%, rgba(239, 127, 47, 0.08), transparent 55%),
        var(--black);
    font-family: Outfit, "Segoe UI", sans-serif;
    overflow-x: hidden;
}

.page {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: max(28px, env(safe-area-inset-top)) 0 max(40px, env(safe-area-inset-bottom));
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 36px;
}

.brand {
    display: flex;
    align-items: center;
    min-width: 0;
    text-decoration: none;
}

.wordmark {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    background: #fff;
    color: #111;
    border-radius: 12px;
    padding: 8px 14px 8px 16px;
    font-family: Outfit, "Segoe UI", sans-serif;
    font-size: clamp(1.35rem, 4vw, 1.85rem);
    font-style: italic;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
}

.mark-o {
    display: inline-block;
    width: 0.78em;
    height: 0.62em;
    margin: 0 0.02em 0 0.04em;
    border: 0.11em solid var(--orange);
    border-radius: 999px;
    background: #fff;
    box-sizing: border-box;
    flex: 0 0 auto;
}

.mark-z {
    color: var(--orange);
    margin-left: -0.02em;
}

.top-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.secure {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.env {
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.env-uat {
    background: transparent;
    color: var(--orange);
    border: 1px solid var(--orange);
}

.env-production {
    background: var(--orange);
    color: var(--black);
}

.shell {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 48px;
    align-items: start;
}

.intro { min-width: 0; }

.eyebrow {
    margin: 0 0 12px;
    color: var(--orange);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    max-width: 12ch;
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 0.96;
}

.lede, .about p {
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.65;
}

.about { margin-top: 18px; max-width: 42rem; }
.about p { margin: 0 0 12px; }

.contact {
    display: grid;
    gap: 6px;
    margin: 22px 0 0;
    padding: 16px 18px;
    list-style: none;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(20, 20, 20, 0.72);
}

.contact a {
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
}

.contact a:hover { color: var(--orange); }
.contact li { line-height: 1.45; }

.steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.steps li {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(20, 20, 20, 0.55);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.25;
}

.steps span {
    display: grid;
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: var(--orange);
    color: var(--black);
    font-size: 0.82rem;
    font-weight: 800;
}

.card {
    min-width: 0;
    background: linear-gradient(180deg, rgba(239, 127, 47, 0.16), transparent 72px), var(--card);
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow);
    padding: 28px;
}

fieldset {
    border: 0;
    margin: 0 0 8px;
    padding: 0;
}

legend {
    margin-bottom: 14px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--orange);
}

label {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 0.92rem;
    font-weight: 600;
}

input, select, button { font: inherit; }

input, select {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--field);
    color: var(--ink);
    color-scheme: dark;
    font-size: 16px;
    padding: 12px 14px;
}

select option {
    background: #141414;
    color: #fefefc;
}

input:focus, select:focus {
    outline: 2px solid rgba(239, 127, 47, 0.45);
    border-color: var(--orange);
}

input::placeholder { color: #6f6a64; }

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.amount {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--field);
    padding-left: 14px;
}

.amount span {
    color: var(--orange);
    font-weight: 800;
}

.amount input {
    min-width: 0;
    border: 0;
    padding-left: 0;
    background: transparent;
}

.amount input:focus { outline: none; }

.amount:focus-within {
    outline: 2px solid rgba(239, 127, 47, 0.45);
    border-color: var(--orange);
}

button, a.button, .text-link { border-radius: 14px; }

a.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 52px;
    padding: 14px 18px;
    background: var(--orange);
    color: var(--black);
    font-weight: 800;
    text-decoration: none;
    text-align: center;
}

a.button:hover { background: var(--orange-deep); }

button {
    width: 100%;
    min-height: 52px;
    border: 0;
    background: var(--orange);
    color: var(--black);
    cursor: pointer;
    font-weight: 800;
    font-size: 1.05rem;
    padding: 14px 16px;
}

button:hover { background: var(--orange-deep); }
button:disabled { opacity: 0.7; cursor: progress; }

button.secondary {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--orange);
    font-size: 1rem;
}

.fine, .notice {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.fine { margin: 12px 0 0; }

.notice {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #1c1c1c;
}

.notice-warn {
    background: var(--warn-bg);
    color: var(--warn);
}

.notice ul { margin: 0; padding-left: 18px; }

.mono {
    font-family: ui-monospace, "Cascadia Code", monospace;
    font-size: 0.86rem;
    overflow-wrap: anywhere;
}

.result-shell { grid-template-columns: minmax(0, 720px); justify-content: center; }
.result-card h1 { max-width: none; font-size: clamp(2.1rem, 5vw, 3.4rem); margin-bottom: 8px; }

.amount-hero {
    margin: 8px 0 0;
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
}

.amount-hero span {
    color: var(--orange);
    font-size: 0.55em;
    letter-spacing: 0.04em;
}

.status {
    display: inline-block;
    margin: 0 0 12px;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.status-paid { background: var(--orange); color: var(--black); }
.status-authorized, .status-initiated, .status-pending { background: #3a2a18; color: var(--warn); }
.status-failed, .status-unmatched { background: #3a1814; color: var(--danger); }

.receipt {
    display: grid;
    gap: 0;
    margin: 22px 0 8px;
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
}

.receipt div {
    display: grid;
    grid-template-columns: minmax(96px, 140px) minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
}

.receipt div:last-child { border-bottom: 0; }
.receipt dt { color: var(--muted); font-size: 0.86rem; }
.receipt dd { margin: 0; min-width: 0; font-weight: 600; }

.actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.actions form { flex: 1 1 180px; }
.actions .button { flex: 1 1 200px; }
.text-link { color: var(--orange); font-weight: 700; padding: 8px 0; }

.wordmark-small {
    padding: 6px 10px 6px 12px;
    font-size: 1.25rem;
    border-radius: 10px;
}

.site-footer {
    margin-top: 56px;
    padding: 28px 0 8px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 28px 32px;
}

.footer-brand p,
.site-footer p { margin: 0 0 4px; }

.footer-brand { display: grid; gap: 8px; align-content: start; }
.footer-brand .brand { justify-self: start; }
.footer-brand strong { color: var(--ink); font-weight: 600; }

.footer-label {
    margin: 0 0 10px;
    color: var(--orange);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.site-footer a { color: var(--ink); font-weight: 600; text-decoration: none; }
.site-footer a:hover { color: var(--orange); }

.footer-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px 24px;
    flex-wrap: wrap;
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    color: #8a857e;
    font-size: 0.82rem;
}

.footer-credit { text-align: center; }
.footer-credit a { color: var(--orange); font-weight: 700; }
.footer-credit a:hover { color: var(--ink); }

@media (max-width: 900px) {
    .shell { grid-template-columns: 1fr; gap: 28px; }
    .card { order: -1; }
    .intro h1 { max-width: none; }
    .footer-grid { grid-template-columns: 1fr; gap: 22px; }
}

@media (max-width: 640px) {
    .page { width: min(1120px, calc(100% - 24px)); }
    .topbar { margin-bottom: 22px; }
    .secure { display: none; }
    .card { padding: 20px 16px; border-radius: 22px; }
    .grid { grid-template-columns: 1fr; }
    .receipt div { grid-template-columns: 1fr; gap: 4px; }
    .actions { display: grid; }
    .actions form, .actions .button { width: 100%; }
    .wordmark { padding: 7px 10px 7px 12px; }
    .footer-grid, .footer-bar { grid-template-columns: 1fr; display: grid; }
    .footer-bar { gap: 6px; }
}

@media (max-width: 380px) {
    .page { width: min(1120px, calc(100% - 16px)); }
    h1 { font-size: 2.15rem; }
}
