:root {
    --bg: #f7f9fc;
    --surface: #ffffff;
    --surface-alt: #f1f5f9;
    --text: #0f172a;
    --muted: #334155;
    --brand: #1d4ed8;
    --border: #dbe3ef;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
}

.debug-width {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    background: #000000;
    color: #ffffff;
    font-size: 0.75rem;
    font-family: monospace;
    padding: 0.2rem 0.5rem;
    border-bottom-right-radius: 6px;
}

.image-border {
    width: clamp(110px, 28vw, 321px);
    height: auto;
    border: 2px solid #000000;
    border-radius: 16px;
}

.container {
    width: min(1100px, 92%);
    margin-inline: auto;
}

.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: var(--text);
}

.logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.brand-name {
    font-size: 1.1rem;
    font-weight: 700;
}

.nav {
    display: flex;
    gap: 1rem;
}

.nav a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.nav a:hover {
    color: var(--brand);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 34px;
    height: 34px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
}

.hidden {
    display: none;
}

.loader {
    border: 4px solid var(--surface-alt);
    border-top-color: var(--brand);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin-left: auto;
}

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

.status-container {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.icon {
    font-size: 4rem;
    margin-left: auto;
}

.success-icon {
    color: #10b981;
}

.error-icon {
    color: #ef4444;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-top: 1.875rem;
    justify-content: center;
}

.button {
    display: inline-block;
    background: var(--brand);
    color: #ffffff;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

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

.hero,
.section {
    scroll-margin-top: 5rem;
}

.hero {
    padding: 3.4rem 0 2.3rem;
}

.hero-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
    grid-template-areas:
        "text"
        "image"
        "card";
    align-items: start;
}

.hero-grid .mainImg {
    grid-area: image;
}

.hero-text {
    grid-area: text;
}

.hero-grid .card {
    grid-area: card;
}

.eyebrow {
    color: var(--brand);
    font-weight: 700;
    margin: 0;
}

h1 {
    margin: 0.35rem 0 0;
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    line-height: 1.15;
}

.lead {
    margin-top: 1rem;
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 60ch;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.2rem;
}

.card h2 {
    margin-top: 0;
    font-size: 1.2rem;
}

.card ul {
    margin: 0.75rem 0 0;
    padding-left: 1.25rem;
}

.section {
    padding: 2.2rem 0;
}

.section-alt {
    background: var(--surface-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-grid {
    display: grid;
    gap: 1rem;
}

h2 {
    margin: 0 0 0.7rem;
    font-size: 1.45rem;
}

p {
    margin: 0;
    color: var(--muted);
}

.cloud-copy {
    max-width: 70ch;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.6rem;
    background: var(--surface);
}

.pricing-table th,
.pricing-table td {
    text-align: left;
    padding: 0.6rem 0.9rem;
    border: 1px solid var(--border);
    font-size: 0.95rem;
}

.pricing-table th {
    background: var(--surface-alt);
    color: var(--text);
}

.pricing-table td {
    color: var(--muted);
}

h3 {
    margin: 0 0 0.6rem;
    font-size: 1.15rem;
}

.install-panel p {
    max-width: 60ch;
}

.store-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--text);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.65rem 1rem;
    border-radius: 10px;
}

.store-badge:hover {
    background: var(--brand);
}

.store-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.site-footer {
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.footer-wrap {
    padding: 1rem 0 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer-wrap p {
    margin: 0;
    font-size: 0.94rem;
}

@media (min-width: 780px) {
    .hero-grid {
        grid-template-columns: auto 1.2fr 0.8fr;
        grid-template-areas: "image text card";
        align-items: start;
        gap: 1.6rem;
    }

    .section-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.6rem;
    }

    .footer-wrap {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

html.mobile-safari .hero-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
        "text"
        "image"
        "card";
}

@media (max-width: 650px) {
    .hero-grid {
        grid-template-areas:
            "text"
            "image"
            "card";
    }

    .nav-toggle {
        display: flex;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        padding: 0.5rem 0;
    }

    .nav.nav-open {
        display: flex;
    }

    .nav a {
        padding: 0.75rem 5%;
    }

    .header-wrap {
        position: relative;
    }
}
