:root {
    color-scheme: light;
    --bg: #f7f6f2;
    --surface: #ffffff;
    --text: #1f2933;
    --muted: #64707d;
    --line: #ddd8ce;
    --primary: #176b5c;
    --primary-dark: #0f4f44;
    --accent: #c96f36;
    --success: #19784d;
    --error: #b42318;
    --shadow: 0 20px 50px rgba(31, 41, 51, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

img {
    display: block;
    max-width: 100%;
}

button,
input {
    font: inherit;
}

[hidden] {
    display: none !important;
}

.page {
    width: min(1120px, 100%);
    margin: 0 auto;
    padding: 18px;
}

.product {
    display: grid;
    gap: 22px;
    align-items: center;
}

.product__media {
    overflow: hidden;
    border-radius: 8px;
    background: #e7e0d4;
    box-shadow: var(--shadow);
}

.product__media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.product__content {
    padding: 6px 0;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 6px;
    font-size: clamp(2.2rem, 10vw, 4.6rem);
    line-height: 0.95;
}

h2 {
    margin-bottom: 16px;
    font-size: 1.35rem;
}

h3 {
    margin-bottom: 8px;
    font-size: 1rem;
}

.price {
    margin-bottom: 18px;
    color: var(--primary);
    font-size: 2rem;
    font-weight: 900;
}

.description {
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 1.02rem;
}

.button {
    display: inline-flex;
    width: 100%;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    transition: transform 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.button:hover,
.button:focus-visible {
    background: var(--primary-dark);
    box-shadow: 0 12px 24px rgba(23, 107, 92, 0.22);
    transform: translateY(-1px);
}

.button--secondary {
    background: var(--text);
}

.button--secondary:hover,
.button--secondary:focus-visible {
    background: #111820;
}

.button--success {
    background: var(--success);
}

.button--success:hover,
.button--success:focus-visible {
    background: #125f3d;
}

.buy-form,
.verify-form {
    display: grid;
    gap: 10px;
}

label {
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 800;
}

input {
    width: 100%;
    min-height: 52px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    padding: 0 14px;
    outline: none;
}

input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(23, 107, 92, 0.12);
}

.field-error {
    min-height: 20px;
    margin: 0;
    color: var(--error);
    font-size: 0.9rem;
}

.success-panel {
    display: grid;
    gap: 8px;
    padding: 16px;
    border: 1px solid rgba(25, 120, 77, 0.22);
    border-radius: 8px;
    background: #ecf8f1;
}

.success-panel span {
    color: var(--muted);
}

.details,
.verify-section {
    margin-top: 26px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.detail-grid {
    display: grid;
    gap: 14px;
}

.detail-grid article {
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.detail-grid p {
    margin-bottom: 0;
    color: var(--muted);
}

.verify-download {
    margin-top: 14px;
}

.loader {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(247, 246, 242, 0.78);
    backdrop-filter: blur(6px);
}

.loader.is-active {
    display: flex;
}

.loader__spinner {
    width: 54px;
    height: 54px;
    border: 5px solid rgba(23, 107, 92, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 800ms linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (min-width: 760px) {
    .page {
        padding: 42px 28px;
    }

    .product {
        grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
        gap: 42px;
        min-height: 62vh;
    }

    .product__media img {
        aspect-ratio: 1 / 1;
    }

    .detail-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .detail-grid article {
        padding-top: 0;
        padding-left: 16px;
        border-top: 0;
        border-left: 1px solid var(--line);
    }

    .detail-grid article:first-child {
        padding-left: 0;
        border-left: 0;
    }
}

