:root {
    --blue: #0e3864;
    --blue-deep: #082848;
    --gold: #b78a2f;
    --gold-soft: #e4c987;
    --ink: #1f2630;
    --muted: #6d6470;
    --ivory: #f5efe2;
    --paper: #fffaf0;
    --danger: #9f2f2f;
    --success: #286445;
    --shadow: 0 22px 60px rgba(8, 40, 72, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: Inter, Arial, sans-serif;
    background:
        linear-gradient(rgba(255, 250, 240, 0.16), rgba(255, 250, 240, 0.16)),
        image-set(
            url("/assets/background-devotional.webp?v=8") type("image/webp"),
            url("/assets/background-devotional.png?v=8") type("image/png")
        ) center / cover no-repeat fixed,
        linear-gradient(135deg, #f8f1e4 0%, #fbf7ee 48%, #efe4cf 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.1;
    background-image:
        linear-gradient(rgba(14, 56, 100, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(183, 138, 47, 0.04) 1px, transparent 1px);
    background-size: 42px 42px;
}

.page-shell {
    position: relative;
    display: grid;
    min-height: 100vh;
    padding: 22px 16px;
    place-items: center;
}

.access-card {
    width: min(100%, 1100px);
    display: grid;
    gap: 18px;
}

.product-visual {
    display: grid;
    justify-items: center;
    padding: 4px 0 0;
}

.product-cover {
    width: min(68vw, 250px);
    max-height: 38vh;
    object-fit: contain;
    border-radius: 3px;
    filter: drop-shadow(0 18px 34px rgba(8, 40, 72, 0.22));
}

.access-panel {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(183, 138, 47, 0.28);
    border-radius: 8px;
    padding: 26px 20px 22px;
    background: rgba(255, 250, 240, 0.78);
    box-shadow: 0 18px 48px rgba(8, 40, 72, 0.13);
    backdrop-filter: blur(8px);
}

.access-panel::after {
    content: "";
    position: absolute;
    right: -42px;
    bottom: -52px;
    width: 160px;
    height: 160px;
    border: 1px solid rgba(14, 56, 100, 0.14);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(183, 138, 47, 0.14), transparent 68%);
}

.brand-line {
    width: 96px;
    height: 3px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--blue), var(--gold));
}

h1 {
    margin: 0;
    color: var(--blue);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(2.3rem, 14vw, 4.1rem);
    font-weight: 700;
    line-height: 0.92;
}

.subtitle {
    max-width: 26rem;
    margin: 14px 0 0;
    color: #3f3a35;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.2rem, 5vw, 1.55rem);
    font-weight: 600;
    line-height: 1.12;
}

.access-form,
.download-box {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

label {
    color: var(--blue-deep);
    font-size: 0.92rem;
    font-weight: 700;
}

input {
    width: 100%;
    min-height: 56px;
    border: 1px solid rgba(14, 56, 100, 0.22);
    border-radius: 7px;
    padding: 0 16px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.82);
    font: 600 1rem/1 Inter, Arial, sans-serif;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(14, 56, 100, 0.12);
}

.primary-button {
    display: inline-flex;
    width: 100%;
    min-height: 56px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 7px;
    padding: 0 18px;
    color: #fffaf0;
    background: linear-gradient(135deg, var(--blue), var(--blue-deep));
    box-shadow: 0 14px 30px rgba(8, 40, 72, 0.24);
    cursor: pointer;
    font: 800 0.98rem/1 Inter, Arial, sans-serif;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.primary-button:hover,
.primary-button:focus-visible {
    box-shadow: 0 18px 34px rgba(8, 40, 72, 0.3);
    transform: translateY(-1px);
}

.helper-text,
.trust-text,
.welcome {
    position: relative;
    z-index: 1;
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

.trust-text {
    margin-top: 5px;
    color: var(--gold);
    font-weight: 700;
}

.notice {
    position: relative;
    z-index: 1;
    margin-top: 20px;
    border-radius: 7px;
    padding: 13px 14px;
    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1.35;
}

.notice-success {
    border: 1px solid rgba(40, 100, 69, 0.18);
    color: var(--success);
    background: rgba(232, 246, 238, 0.9);
}

.notice-error {
    border: 1px solid rgba(159, 47, 47, 0.18);
    color: var(--danger);
    background: rgba(255, 239, 237, 0.9);
}

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

    .access-card {
        grid-template-columns: minmax(310px, 0.9fr) minmax(390px, 1fr);
        align-items: center;
        gap: 52px;
    }

    .product-cover {
        width: min(34vw, 430px);
        max-height: 82vh;
    }

    .access-panel {
        padding: 44px 42px 38px;
    }
}

@media (max-width: 370px) {
    .page-shell {
        padding-inline: 12px;
    }

    .access-panel {
        padding-inline: 16px;
    }

    .product-cover {
        width: min(74vw, 220px);
    }
}

@media (max-width: 759px) {
    body {
        background:
            linear-gradient(rgba(255, 250, 240, 0.18), rgba(255, 250, 240, 0.18)),
            image-set(
                url("/assets/background-devotional-mobile.webp?v=8") type("image/webp"),
                url("/assets/background-devotional-mobile.png?v=8") type("image/png")
            ) center top / cover no-repeat fixed,
            linear-gradient(135deg, #f8f1e4 0%, #fbf7ee 48%, #efe4cf 100%);
    }
}
