:root {
    --ink: #122033;
    --ink-soft: #1c314c;
    --paper: #f6efe4;
    --card: #fffaf3;
    --line: #e4d5bf;
    --copper: #c4843a;
    --copper-deep: #9a5f1f;
    --moss: #2f6b52;
    --danger: #b42318;
    --muted: #6d5c4a;
    --shadow: 0 18px 40px rgba(18, 32, 51, 0.12);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: "Outfit", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(1200px 500px at 10% -10%, rgba(196, 132, 58, 0.22), transparent 55%),
        radial-gradient(900px 400px at 100% 0%, rgba(47, 107, 82, 0.18), transparent 50%),
        linear-gradient(180deg, #122033 0%, #1a2d46 42%, #f6efe4 42%);
}

a {
    color: inherit;
}

.site-wrap {
    width: min(1080px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 64px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #f6efe4;
    text-decoration: none;
    margin-bottom: 28px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(145deg, #e2b36a, #c4843a);
    display: grid;
    place-items: center;
    font-family: "Fraunces", serif;
    font-weight: 700;
    color: #122033;
}

.brand small {
    display: block;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 11px;
    opacity: 0.72;
}

.brand strong {
    font-family: "Fraunces", serif;
    font-size: 22px;
    font-weight: 600;
}

.steps {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 10px;
    color: #f6efe4;
    margin-bottom: 28px;
}

.step {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.55;
}

.step.is-active,
.step.is-done {
    opacity: 1;
}

.step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(246, 239, 228, 0.4);
    display: grid;
    place-items: center;
    font-size: 13px;
}

.step.is-active .step-num,
.step.is-done .step-num {
    background: var(--copper);
    border-color: var(--copper);
    color: #122033;
    font-weight: 700;
}

.step-rail {
    height: 1px;
    background: rgba(246, 239, 228, 0.28);
}

.panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 28px;
}

.panel h1 {
    font-family: "Fraunces", serif;
    font-size: clamp(28px, 4vw, 40px);
    margin: 0 0 8px;
    letter-spacing: -0.03em;
}

.lede {
    margin: 0 0 28px;
    color: var(--muted);
    max-width: 56ch;
    line-height: 1.55;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 18px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.field.full {
    grid-column: 1 / -1;
}

.field label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}

.field input,
.field textarea {
    font: inherit;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.field textarea {
    min-height: 96px;
    resize: vertical;
}

.field input:focus,
.field textarea:focus {
    border-color: var(--copper);
    box-shadow: 0 0 0 4px rgba(196, 132, 58, 0.16);
}

.field .error {
    color: var(--danger);
    font-size: 13px;
}

.section-title {
    font-family: "Fraunces", serif;
    font-size: 22px;
    margin: 28px 0 14px;
}

.products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.product {
    position: relative;
}

.product input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.product-card {
    position: relative;
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 14px;
    align-items: center;
    min-height: 108px;
    padding: 16px 28px 16px 16px;
    border: 1.5px solid var(--line);
    border-radius: 18px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.product-card:hover {
    transform: translateY(-2px);
    border-color: #d8b07a;
}

.product input:focus-visible + .product-card {
    box-shadow: 0 0 0 4px rgba(196, 132, 58, 0.2);
}

.product input:checked + .product-card {
    border-color: var(--copper);
    background: linear-gradient(180deg, #fff8ec, #fff);
    box-shadow: 0 10px 24px rgba(196, 132, 58, 0.16);
}

.icon-blob {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: #f3e6d3;
    color: var(--ink-soft);
}

.product input:checked + .product-card .icon-blob {
    background: #ead3ae;
}

.product-copy h3 {
    margin: 0 0 4px;
    font-size: 16px;
}

.product-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.price {
    font-family: "Fraunces", serif;
    font-size: 18px;
    white-space: nowrap;
}

.radio-dot {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #cbb79a;
    background: #fff;
}

.product input:checked + .product-card .radio-dot {
    border-color: var(--copper);
    background: var(--copper);
    box-shadow: inset 0 0 0 3px #fff;
}

.actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
}

.btn {
    appearance: none;
    border: 0;
    cursor: pointer;
    font: inherit;
    font-weight: 650;
    letter-spacing: 0.02em;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    padding: 14px 28px;
    transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(180deg, #d89a4a, #c4843a);
    color: #122033;
    box-shadow: 0 10px 20px rgba(196, 132, 58, 0.28);
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line);
}

.summary-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 18px;
}

.block {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 20px;
}

.block h2 {
    margin: 0 0 16px;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.kv {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 10px 12px;
    font-size: 15px;
}

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

.kv dd {
    margin: 0;
    font-weight: 560;
}

.product-spotlight {
    display: flex;
    gap: 14px;
    align-items: center;
}

.amount-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px dashed var(--line);
}

.amount-row strong {
    font-family: "Fraunces", serif;
    font-size: 28px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.badge-pending {
    background: #f6e3c4;
    color: #7a4a12;
}

.badge-paid {
    background: #d7efe3;
    color: #1d5a3e;
}

.success-banner {
    display: flex;
    gap: 14px;
    align-items: center;
    background: linear-gradient(90deg, #2f6b52, #3d8566);
    color: #f4fff8;
    border-radius: 16px;
    padding: 16px 18px;
    margin-bottom: 18px;
}

.success-banner h2 {
    margin: 0 0 4px;
    font-family: "Fraunces", serif;
    font-size: 22px;
}

.success-banner p {
    margin: 0;
    opacity: 0.9;
}

.txn-id {
    font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
    background: #f3e6d3;
    padding: 2px 8px;
    border-radius: 6px;
}

.note {
    margin-top: 16px;
    color: var(--muted);
    font-size: 13px;
}

.alert {
    background: #fde8e6;
    color: var(--danger);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 18px;
}

@media (max-width: 820px) {
    .grid-2,
    .products,
    .summary-grid,
    .kv {
        grid-template-columns: 1fr;
    }

    .steps {
        font-size: 13px;
    }

    .step span:last-child {
        display: none;
    }
}
