:root {
    --sub-primary: #b45309;
    --sub-secondary: #78350f;
    --sub-dark: #292524;
    --sub-content-width: 820px;
    --sub-kicker: #fcd34d;
    --sub-hero-border: #d97706;
    --sub-body-bg: linear-gradient(160deg, #fffbeb 0%, #fef3c7 45%, #fde68a 100%);
    --sub-var-hover-bg: #fffbeb;
    --sub-var-selected-bg: #fef3c7;
}

html { overflow-x: clip; }

body.sub-page {
    background: var(--sub-body-bg);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 100%;
    overflow-x: clip;
}

.sub-hero {
    background-color: var(--sub-dark);
    background-image: linear-gradient(rgba(41, 37, 36, 0.82), rgba(41, 37, 36, 0.88)), url('/kingdom.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 3.5rem 1.25rem 3rem;
    text-align: center;
    border-bottom: 3px solid var(--sub-hero-border);
}

.sub-hero h1 {
    font-weight: 800;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    text-shadow: 0 2px 8px rgba(0,0,0,.4);
    margin-bottom: 0.75rem;
}

.sub-hero-kicker { color: var(--sub-kicker); }

.sub-hero .lead {
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    opacity: 0.95;
    max-width: 720px;
    margin: 0 auto 1.5rem;
}

.sub-hero-intro { margin-bottom: 1.75rem; }

.sub-hero-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    margin: 0 auto;
    width: 100%;
    max-width: var(--sub-content-width);
}

.sub-hero-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,.35);
}

.sub-hero-cta { width: 100%; max-width: 360px; text-align: center; }

.sub-cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--sub-primary), var(--sub-secondary));
    color: #fff !important;
    font-weight: 700;
    font-size: 1.15rem;
    padding: 14px 32px;
    border-radius: 50px;
    border: none;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(180, 83, 9, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.sub-cta-button:hover {
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(120, 53, 15, 0.35);
}

.sub-cta-link { color: var(--sub-primary); font-weight: 700; text-decoration: none; }
.sub-cta-link:hover { color: var(--sub-secondary); }

.sub-purchase-section {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.1);
    padding: 2.5rem 1.5rem;
    margin: -2rem auto 3rem;
    max-width: var(--sub-content-width);
    position: relative;
    z-index: 2;
}

.sub-purchase-section h2 { color: var(--sub-dark); font-weight: 800; }

.variation-option {
    background: #fafaf9;
    border: 2px solid #e7e5e4;
    border-radius: 12px;
    padding: 14px 16px;
    margin: 10px 0;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.variation-option:hover { border-color: var(--sub-primary); background: var(--sub-var-hover-bg); }
.variation-option.selected {
    border-color: var(--sub-primary);
    background: var(--sub-var-selected-bg);
    box-shadow: 0 4px 16px rgba(180, 83, 9, 0.15);
}

.price-display { font-size: 1.35rem; font-weight: 800; color: var(--sub-primary); }

.sub-ref-upload {
    background: #fafaf9;
    border: 2px dashed #a8a29e;
    border-radius: 14px;
    padding: 1.25rem;
    margin: 1.5rem 0;
    text-align: center;
}

.sub-ref-upload h5 { font-weight: 800; color: var(--sub-dark); margin-bottom: 0.35rem; }

.sub-ref-code-display {
    display: inline-block;
    font-family: ui-monospace, monospace;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--sub-secondary);
    background: #fff;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    border: 1px solid #e7e5e4;
}

.sub-ref-dropzone {
    border: 2px dashed #d6d3d1;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.sub-ref-dropzone:hover, .sub-ref-dropzone.dragover {
    border-color: var(--sub-primary);
    background: var(--sub-var-hover-bg);
}

.sub-ref-dropzone.is-full { opacity: 0.65; cursor: not-allowed; }
.sub-ref-dropzone i { font-size: 2rem; color: var(--sub-primary); display: block; margin-bottom: 0.5rem; }
.sub-ref-preview { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-top: 1rem; }
.sub-ref-preview-item { position: relative; width: 72px; height: 72px; }
.sub-ref-preview-item img {
    width: 100%; height: 100%; object-fit: cover;
    border-radius: 8px; border: 2px solid #e7e5e4; cursor: pointer;
}
.sub-ref-preview-remove {
    position: absolute; top: -6px; right: -6px;
    width: 22px; height: 22px; border-radius: 50%;
    background: #dc3545; color: #fff; border: none;
    font-size: 14px; line-height: 1; cursor: pointer;
}
.sub-ref-count { margin-top: 0.5rem; font-size: 0.9rem; color: #78716c; }
.sub-ref-upload-status { margin-top: 0.75rem; font-size: 0.9rem; }
.sub-ref-upload-status.success { color: #198754; }
.sub-ref-upload-status.error { color: #dc3545; }

.sub-content-section { padding: 3rem 0; }
.sub-content-section--alt { background: rgba(255,255,255,0.55); }
.sub-content-card {
    background: #fff;
    border-radius: 18px;
    padding: 2rem;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
    border: 1px solid #e7e5e4;
}
.sub-content-card h2, .sub-content-card h3 { color: var(--sub-dark); font-weight: 800; }
.sub-showcase { padding: 2.5rem 0; }
.sub-showcase-row { display: flex; align-items: center; gap: 2.5rem; flex-wrap: wrap; }
.sub-showcase-row.reverse { flex-direction: row-reverse; }
.sub-showcase-img { flex: 1 1 45%; min-width: 260px; }
.sub-showcase-text { flex: 1 1 40%; min-width: 260px; }
.sub-showcase-text h3 { font-weight: 800; color: var(--sub-dark); margin-bottom: 1rem; }
.sub-check-list { list-style: none; padding: 0; margin: 0; }
.sub-check-list li { padding: 0.35rem 0 0.35rem 1.75rem; position: relative; }
.sub-check-list li::before {
    content: '✔'; position: absolute; left: 0; color: #059669; font-weight: bold;
}

@media (max-width: 768px) {
    .sub-showcase-row, .sub-showcase-row.reverse { flex-direction: column; }
    .sub-purchase-section { margin-top: -1rem; padding: 1.5rem 1rem; }
}

.sub-page .kos-site-footer-bleed { width: 100%; max-width: 100%; background: #fff; }
