* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'Nunito';
    src: url('fonts/Nunito-VariableFont_wght.woff2') format('truetype');
    font-weight: 200 900;
}

body {
    font-family: "Nunito", sans-serif;
    background: #f5f8f8;
    color: #16324a;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.hero {
    flex: 1;
    width: 50%;
    margin: auto;
    text-align: center;
    padding: 40px 24px;
}

.hero-privacy {
    flex: 1;
    width: 70%;
    margin: auto;
    text-align: center;
    padding: 40px 24px;
}

.logo {
    width: 200px;
    margin-bottom: 16px;
}

h1 {
    font-size: 3.6rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 10px;
}

.trademark {
    font-size: 1.2rem;
    vertical-align: super;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #3a7a82;
    margin-bottom: 12px;
}

h4 {
    font-size: 18px;
    padding-bottom: 10px;
}

.tagline {
    font-size: 1.2rem;
    color: #49616e;
    margin-bottom: 32px;
}

.content {
    background: #ffffff;
    border: 1px solid #d9e6e4;
    border-radius: 22px;
    padding: 36px;
    margin-bottom: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,.05);
}

.content h3 {
    font-size: 2rem;
    margin-bottom: 16px;
    color: #18445b;
}

.content h4 {
    font-size: 18px;
    margin-bottom: 1em;
    color: #18445b;
}

.content p {
    font-size: 1.1rem;
    line-height: 1.75;
    margin-bottom: 1em;
    color: #3d5562;
}

.content p.left {
    text-align: left;
}

.sub-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
    margin-bottom: 36px;
}

.sub-content-box {
    background: #ffffff;
    border: 1px solid #d9e6e4;
    border-radius: 22px;
    width: 100%;
    padding: 36px;
    box-shadow: 0 6px 18px rgba(0,0,0,.05);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 240px;
    margin-top: 18px;
    margin-left: 6px;
    margin-right: 6px;
    padding: 15px 28px;
    background: #4d9890;
    color: white;
    border: none;
    font-family: inherit;
    font-size: inherit;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 700;
    transition: .2s ease;
    vertical-align: middle;
    user-select: none;
    cursor: pointer;
}

.button:hover {
    background: #3f817b;
    text-decoration: none;
    color: white;
    transform: translateY(-2px);
}

.button.disabled {
    cursor: not-allowed;
}

.button img {
    width: 22px;
    height: 22px;
}

button.is-loading {
    opacity: 0.7;
    cursor: wait;
}

button.is-loading::before {

    content: "";

    display: inline-block;

    width: 14px;
    height: 14px;

    margin-right: 8px;

    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;

    vertical-align: -2px;

    animation: button-spin 0.8s linear infinite;
}

@keyframes button-spin {

    to {
        transform: rotate(360deg);
    }

}

.product-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding-top: 40px;
}

.product-info {
    
    align-self: center;
    text-align: left;
}

.product-info p {
    padding-top: 15px;
}

.affiliate-button {
    margin-left: auto;
    margin-top: 0;
    flex-shrink: 0;
}

.affiliate-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    margin-bottom: 32px;
}

.affiliate-item {
    width: 250px;
    height: 52px;
    margin-bottom: 12px;
}


#sampleButton {
    cursor: pointer;
}

#productsButton {
    cursor: pointer;
}

.modal {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 9999;

    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal .modal-content {
    position: relative;

    width: 500px;
    max-width: calc(100% - 40px);
    box-sizing: border-box;

    padding: 40px;

    background: #ffffff;
    border-radius: 12px;

    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);

    transform: scale(0.95);
    transition: transform 0.25s ease;
}

#productsModal .modal-content {
    width: 700px;
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal .modal-content h2 {
    margin: 0 0 10px 0;
}

.modal .modal-content p {
    margin: 0 0 20px 0;
}

.modal .modal-close {
    position: absolute;
    top: 10px;
    left: 10px;

    width: 32px;
    height: 32px;

    padding: 0;
    margin: 0;

    border: none;
    background: transparent;

    font-family: Arial, sans-serif;
    font-size: 28px;
    font-weight: normal;
    line-height: 32px;

    color: #222;

    cursor: pointer;
}

.modal .modal-close:hover {
    opacity: 0.6;
    cursor: pointer;
}

.modal form {
    display: flex;
    flex-direction: column;
    gap: 15px;

    width: 100%;
    margin: 0;
    padding: 0;
}

.input-box {
    display: block;

    width: 100%;
    height: auto;
    box-sizing: border-box;

    margin: 0;
    padding: 12px 14px;

    border: 1px solid #ccc;
    border-radius: 6px;

    background: #ffffff;

    font-family: inherit;
    font-size: 16px;
    line-height: 1.4;
    color: #222;

    outline: none;
}

.input-box:focus {
    border-color: #1FA6A6;
    box-shadow: 0 0 0 2px rgba(31, 166, 166, 0.15);
}

.modal button[type="submit"] {
    display: block;

    width: 100%;
    height: auto;
    box-sizing: border-box;

    margin: 0;
    padding: 12px 18px;

    border: none;
    border-radius: 999px;

    background: #3f817b;
    color: #ffffff;

    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;

    cursor: pointer;

    transition: opacity 0.2s ease;
}

.modal button[type="submit"]:hover {
    opacity: 0.85;
}

.blog {
    max-width: 760px;
    margin: auto;
    text-align: left;
    padding: 40px 24px;
}


.blog h1 {
    text-align: center;
    margin-bottom: 32px;
}


.blog-post-preview {
    background: #ffffff;
    border: 1px solid #d9e6e4;
    border-radius: 22px;
    padding: 28px;
    margin-bottom: 20px;
    box-shadow: 0 6px 18px rgba(0,0,0,.05);
    transition: .2s ease;
}


.blog-post-preview:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0,0,0,.08);
}


.blog-post-preview h2 {
    margin-bottom: 8px;

}


.blog-post-preview h2 a {
    color: #3a7a82;
    text-decoration: none;
}


.blog-post-preview h2 a:hover {
    color: #2f666d;
    text-decoration: none;
}


.blog-date {
    font-size: .95rem;
    color: #6d7d87;
    margin-bottom: 12px;
}


.blog-post-preview p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #3d5562;
}

.blog-thumbnail {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 20px;
}

.blog-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 22px;
    margin-bottom: 20px;
}

.youtube-consent {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
}

.youtube-consent img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.youtube-consent-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
    background: rgba(0, 0, 0, 0.55);
}

.youtube-consent-overlay p {
    max-width: 600px;
    color: #fff;
}

.back-button {
    position: fixed;
    top: 24px;
    left: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: #ffffff;
    color: #3a7a82;
    border: 1px solid #d9e6e4;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    transition: .2s ease;
    z-index: 10;
}


.back-button:hover {
    background: #4d9890;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

footer {
    text-align: center;
    padding: 18px;
    color: #6d7d87;
    font-size: .95rem;
}

.footer-button{
    padding-left: 6px;
    padding-right: 6px;
}

@media screen and (max-width: 768px) {

    .hero {
        padding: 50px 20px;
        width: 100%;
    }

    .hero-privacy {
        width: 100%;
    }

    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .tagline {
        margin-bottom: 50px;
    }

    .content {
        padding: 34px 26px;
    }

    .content h3 {
        font-size: 1.6rem;
    }

    .content p {
        font-size: 1rem;
    }

    .sub-content {
        grid-template-columns: 1fr;
    }

    .modal {
        align-items: flex-start;
        overflow-y: auto;
        padding: 12px 0;
    }

    .affiliate-grid {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 0;
        margin-bottom: 16px;
    }

    .affiliate-item {
        width: 100%;
        height: auto;
        margin: 0;
        padding: 0;
        text-align: center;
    }

    .product-info {
        text-align: center;
    }

    #productsModal .product-info p {
        padding: 0;
        margin: 4px 0 2px 0;
        font-size: 0.9rem;
        line-height: 1.2;
    }

    #productsModal .affiliate-button {
        width: 190px;
        height: 38px;
        min-height: 0;
        padding: 0 15px;
        margin: 0 auto 10px auto;
        font-size: 0.85rem;
        line-height: 1;
    }

    .blog {
        padding: 50px 20px;
    }


    .blog-post-preview {
        padding: 24px;
        border-radius: 18px;
    }


    .blog-post-preview h2 {
        font-size: 1.4rem;
    }


    .blog-post-preview p {
        font-size: 1rem;
    }
}

a {
    color: #3a7a82;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

a:hover {
    color: #2f666d;
    text-decoration: underline;
}

a:active {
    color: #245157;
}

a:focus-visible {
    outline: 2px solid #4d9890;
    outline-offset: 3px;
    border-radius: 4px;
}

.admin-menu {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.admin-menu a {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

.admin-menu a.active {
    background: #444;
    color: #fff;
}

.stats {
    width: 100%;
    border-collapse: collapse;
}

.stats td {
    padding: 0.35rem 0;
    text-align: left;
}

.stats td:last-child {
    text-align: right;
    font-weight: bold;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.admin-table th,
.admin-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.admin-table th {
    background: #f4f4f4;
    font-weight: 600;
}

.admin-table tr:hover {
    background: #fafafa;
}