@import url(styles-footer.css);

:root {
    color-scheme: light dark;
    --dp-bg: #FFFFFF;
    --dp-surface: #F5F5F5;
    --dp-surface-raised: #FFFFFF;
    --dp-text: #222224;
    --dp-text-muted: #5E6470;
    --dp-accent: #2E96F9;
    --dp-accent-soft: rgba(46, 150, 249, 0.10);
    --dp-accent-soft-strong: rgba(46, 150, 249, 0.18);
    --dp-glow: rgba(46, 150, 249, 0.14);
    --dp-glow-secondary: rgba(46, 150, 249, 0.08);
    --dp-dot: rgba(46, 150, 249, 0.10);
    --dp-border: rgba(34, 34, 36, 0.10);
}

@media (prefers-color-scheme: dark) {
    :root {
        --dp-bg: #000000;
        --dp-surface: #242424;
        --dp-surface-raised: #2E2E2E;
        --dp-text: #CFCFCF;
        --dp-text-muted: #9AA1AC;
        --dp-accent: #2E96F9;
        --dp-accent-soft: rgba(46, 150, 249, 0.16);
        --dp-accent-soft-strong: rgba(46, 150, 249, 0.24);
        --dp-glow: rgba(46, 150, 249, 0.16);
        --dp-glow-secondary: rgba(46, 150, 249, 0.09);
        --dp-dot: rgba(46, 150, 249, 0.13);
        --dp-border: rgba(207, 207, 207, 0.14);
    }
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    height: 100%; /* Ensure full height */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--dp-bg);
    background-image:
        radial-gradient(circle at 12% -8%, var(--dp-glow), transparent 42%),
        radial-gradient(circle at 88% 6%, var(--dp-glow-secondary), transparent 38%),
        radial-gradient(circle, var(--dp-dot) 1px, transparent 1px);
    background-repeat: no-repeat, no-repeat, repeat;
    background-size: auto, auto, 22px 22px;
    background-attachment: fixed, fixed, fixed;
    color: var(--dp-text);
    text-align: center;
    letter-spacing: 0px; /* Increases spacing */
    height: 100%; /* Ensure full height */
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    transition: background-color 0.3s, color 0.3s; /* Smooth transition */
}

.header {
    font-size: 36px;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 20px;
}

.header-left {
    font-size: 36px;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 20px;
    /* addition */
    margin-top: 55px;
    margin-bottom: 35px;
    text-align: left;
    padding-left: 30px;
}

.subheader {
    font-size: 20px;
    color: var(--dp-text-muted);
    margin-bottom: 50px;
    padding: 0px 10px;
}

.subheaderTwo {
    font-size: 20px;
    color: var(--dp-text-muted);
    margin-bottom: 50px;
    padding: 0px 30px;
    text-align: left;
    line-height: 1.5;
}

.cta-button {
    width: 200px;
    height: auto;
    margin-top: 25px;
    margin-bottom: 50px;
}
.app-icon {
    width: 100px;
    height: auto;
    margin-top: 50px;
}

.top-language-row + .app-icon {
    margin-top: 24px;
}

.container {
    width: 100%;
    min-width: 0;
    margin: 0px;
    padding: 0px;
    flex: 1; /* Pushes footer down */
    overflow-x: hidden;
}

.card {
    background: var(--dp-surface);
    width: calc(100% - 50px);
    padding: 22px 0px;
    margin: 30px 25px;
    border-radius: 16px;
    text-align: left;
    line-height: 1.5;
}

.card h1 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0px 0px 12px;
    color: var(--dp-text);
    padding: 0px 35px;
}

.card h2 {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0px 0px 12px;
    color: var(--dp-text);
    padding: 0px 35px;
}

.card h3 {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    margin: 22px 0px 8px;
    color: var(--dp-text);
    padding: 0px 35px;
}

.card p {
    padding: 0px 35px;
}

.card ul {
    margin: 0px 15px 12px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--dp-text);
}

.card p {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    margin-top: 0px;
    margin-bottom: 10px;
    color: var(--dp-text);
}

.card > p:last-child,
.card > ul:last-child {
    margin-bottom: 0px;
}

.card .footer {
    opacity: 0.5;
    padding: 0px 30px;
    margin-top: 14px;
    margin-bottom: 0px;
}

.card .screenshots {
    display: flex;
    min-width: 0;
    gap: 21px;
    overflow-x: auto; /* Enable horizontal scrolling */
    white-space: nowrap; /* Prevents images from wrapping */
    margin-bottom: 10px;
    padding-top: 12px;
    padding-left: 30px;
    padding-right: 30px;
}

.card .screenshots::-webkit-scrollbar {
    display: none; /* Hides scrollbar */
}

.card .screenshots img {
    flex: 0 0 auto;
    width: auto;
    height: auto;
    max-width: min(360px, calc(100vw - 84px));
    max-height: 440px;
    object-fit: contain;
    border-radius: 18px;
    border: 0.5px solid var(--dp-border);
}

.card-subtitle {
    opacity: 0.5;
    margin-bottom: 10px;
}

.page-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-right: 30px;
}

.page-title-row .header-left {
    flex: 1;
}

.language-switcher {
    flex: 0 0 auto;
    margin-top: 42px;
    position: relative;
    display: inline-block;
}

.language-switcher::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 11px;
    width: 12px;
    height: 7px;
    pointer-events: none;
    transform: translateY(-50%);
    background-color: var(--dp-accent);
    -webkit-mask: url("data:image/svg+xml,%3Csvg%20width%3D%2214%22%20height%3D%228%22%20viewBox%3D%220%200%2014%208%22%20fill%3D%22none%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M1%201L7%207L13%201%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg%20width%3D%2214%22%20height%3D%228%22%20viewBox%3D%220%200%2014%208%22%20fill%3D%22none%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M1%201L7%207L13%201%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22/%3E%3C/svg%3E") center / contain no-repeat;
}

.language-switcher select {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    border: 0px;
    border-radius: 15px;
    background-color: var(--dp-surface-raised);
    background-image: none;
    color: var(--dp-accent);
    -webkit-text-fill-color: var(--dp-accent);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    min-height: 30px;
    padding: 5px 28px 5px 11px;
}

.top-language-row {
    display: flex;
    justify-content: flex-end;
    padding: 18px 30px 0px;
}

.top-language-row .language-switcher {
    margin-top: 0px;
}

.help-meta {
    color: var(--dp-text-muted);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    margin: -22px 0px 30px;
    padding: 0px 30px;
    text-align: left;
}

.help-intro p {
    max-width: 760px;
}

.help-topic-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 4px 35px 24px;
}

.help-topic-grid a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 6px 14px;
    border-radius: 18px;
    background: var(--dp-accent-soft);
    color: var(--dp-accent);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.help-topic-grid a:hover {
    text-decoration: none;
    background: var(--dp-accent-soft-strong);
}

.help-card {
    scroll-margin-top: 20px;
}

.help-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--dp-text);
    line-height: 1.3;
    margin: 26px 0px 8px;
    padding: 22px 35px 0px;
    border-top: 1px solid var(--dp-border);
}

.help-card h3:first-of-type {
    margin-top: 10px;
    padding-top: 0px;
    border-top: 0px;
}

.help-card p {
    font-size: 16px;
    line-height: 1.6;
    margin-top: 0px;
    margin-bottom: 10px;
}

.help-card ul {
    font-size: 16px;
    line-height: 1.55;
}

.help-card li {
    margin-bottom: 8px;
}

.help-card a {
    color: var(--dp-accent);
}

.help-card em {
    color: var(--dp-text-muted);
    font-style: normal;
}

.setting-path {
    display: block;
    width: auto;
    max-width: calc(100% - 70px);
    margin: 10px 35px 18px;
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--dp-accent-soft);
    color: var(--dp-accent);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.help-card li .setting-path {
    max-width: 100%;
    margin: 10px 0px 18px;
}

@media (max-width: 600px) {
    .header {
        font-size: 32px;
    }

    .subheader,
    .subheaderTwo {
        font-size: 17px;
        line-height: 1.5;
    }

    .card {
        width: calc(100% - 32px);
        margin: 22px 16px;
        padding: 18px 0px;
        border-radius: 16px;
    }

    .card h1 {
        font-size: 24px;
        padding: 0px 26px;
    }

    .card h2 {
        font-size: 22px;
        padding: 0px 26px;
    }

    .card h3 {
        font-size: 16px;
        padding: 0px 26px;
    }

    .card p {
        padding: 0px 26px;
    }

    .card p,
    .card ul {
        font-size: 15px;
    }

    .card ul {
        margin-left: 8px;
        margin-right: 8px;
    }

    .card .screenshots {
        padding-left: 26px;
        padding-right: 26px;
    }

    .card .screenshots img {
        max-width: calc(100vw - 84px);
        max-height: 360px;
    }

    .help-page .header-left {
        margin-bottom: 10px;
    }

    .help-meta {
        font-size: 14px;
        margin: 0px 0px 24px;
        padding: 0px 30px;
    }

    .help-topic-grid {
        gap: 8px;
        padding: 4px 26px 20px;
    }

    .help-topic-grid a {
        min-height: 34px;
        padding: 6px 12px;
        font-size: 13px;
        border-radius: 17px;
    }

    .help-card h3 {
        font-size: 16px;
        padding: 20px 26px 0px;
        margin-top: 24px;
    }

    .help-card h3:first-of-type {
        padding-top: 0px;
    }

    .setting-path {
        max-width: calc(100% - 52px);
        margin: 10px 26px 18px;
        font-size: 14px;
    }

    .page-title-row {
        display: block;
        padding-right: 0px;
        text-align: left;
    }

    .language-switcher {
        margin: -22px 30px 26px;
        text-align: left;
    }

    .language-switcher select {
        min-height: 32px;
        padding: 5px 28px 5px 11px;
    }

    .top-language-row {
        justify-content: flex-start;
        padding: 14px 16px 0px;
    }

    .top-language-row .language-switcher {
        margin: 0px;
    }
}

.email {
    color: var(--dp-accent);
}
