* {
    box-sizing: border-box;
}

:root {
    color-scheme: light dark;
    --primary: #6396d9;
    --primary-dark: #3e6aa4;
    --primary-darker: #203e65;
    --secondary: #64748b;
    --accent: #16a085;
    --bg: #f8f9fa;
    --bg-field: #e7eaee;
    --bg-inverted: #1d2025;
    --bg-muted: #E8F5F3;
    --text: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --radius-sm: 0.5em;
    --radius-md: 0.75em;
    --radius-lg: 1.5em;
    --radius-xl: 4em;
    --frame-bg: rgba(255, 255, 255, 0.6);
    --page-gutter: 1.25rem;
}

@media (prefers-color-scheme: dark) {
    :root {
        --primary: #6396d9;
        --primary-dark: #3e6aa4;
        --primary-darker: #203e65;
        --secondary: #94a3b8;
        --accent: #4fd1c5;
        --bg: #0b0f14;
        --bg-field: #151c25;
        --bg-inverted: #f8f9fa;
        --bg-muted: rgba(255,255,255,0.03);
        --text: #e6eef8;
        --text-secondary: #cbd5e1;
        --text-muted: #9aa7b8;
        --border: rgba(255,255,255,0.06);
        --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.6), 0 1px 2px -1px rgba(0,0,0,0.6);
        --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.5), 0 4px 6px -4px rgba(0,0,0,0.5);
        --frame-bg: rgba(10, 12, 15, 0.6);
    }

    .frame {
        background: rgba(10, 12, 15, 0.6);
        border: 1px solid rgba(255,255,255,0.06);
        box-shadow: 0 4px 8px rgba(0,0,0,0.6);
    }

    .form-input,
    .form-textarea {
        background: transparent;
        color: var(--text);
        border: 1px solid var(--border);
    }

    .btn-primary { color: white; }
}

@media (min-width: 460px) {
    :root {
        --page-gutter: 2.5rem;
    }
}

body {
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg) url('/images/bg-orbs.svg') no-repeat top center;
    background-size: 100% auto;
    overflow-x: hidden;
    margin: 0;
}

main {
    position: relative;
}

main a {
    color: var(--primary);
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--page-gutter);
}
.container-lg {
    max-width: 1440px;
}
.container-sm {
    max-width: 1024px;
}
.container-xs {
    max-width: 800px;
}

.section-v-spaced {
    margin-top: max(4rem, 10vh);
    margin-bottom: max(4rem, 10vh);
}
.section-v-spaced:first-child {
    margin-top: 0;
}
.section-pad { padding: 3rem 0; }
.section-pad-top { padding: 4rem 0 0; }
.section-pad-btm { padding: 0 0 4rem; }

.grid { display: grid; }
.grid-35 { grid-template-columns: 3fr 5fr; }
.grid-54 { grid-template-columns: 5fr 4fr; }
.grid-233 { grid-template-columns: 2fr 3fr 3fr; }

.center-mobile { text-align: center; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

.gap-lg { gap: 3rem; }
.gap-md { gap: 2rem; }
.gap-sm { gap: 1.5rem; }

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

.logo { margin-bottom: 2rem; }
.logo picture { display: block; }
.logo img { width: 150px; height: 150px; }

a.logo {
    text-decoration: none;
    color: inherit;
}
.logo h1 {
    margin-bottom: 0;
}
.logo p {
    margin: 0
}

header {
    padding-top: 4rem;
}


.btn {
    border: 1px solid transparent;
    padding: 1em 1.5em;
    border-radius: var(--radius-lg);
    line-height: 1.1;
    font-size: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}
a.btn {
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

/* Bubble animation modifier - add alongside btn-primary */
.btn-bubbles {
    background: var(--primary-dark);
    border-color: var(--primary);
    color: white;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-bubbles::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        radial-gradient(circle, rgba(255,255,255,0.3) 40%, transparent 40%),
        radial-gradient(circle, rgba(255,255,255,0.25) 40%, transparent 40%),
        radial-gradient(circle, rgba(255,255,255,0.2) 40%, transparent 40%),
        radial-gradient(circle, rgba(255,255,255,0.25) 40%, transparent 40%),
        radial-gradient(circle, rgba(255,255,255,0.3) 40%, transparent 40%),
        radial-gradient(circle, rgba(255,255,255,0.2) 40%, transparent 40%);
    background-size:
        8px 8px,
        12px 12px,
        6px 6px,
        10px 10px,
        7px 7px,
        9px 9px;
    background-position:
        10% 110%,
        30% 110%,
        50% 110%,
        70% 110%,
        85% 110%,
        95% 110%;
    background-repeat: no-repeat;
    animation: bubbleRise 3s ease-in-out infinite;
}

@keyframes bubbleRise {
    0% {
        background-position:
            10% 110%,
            30% 120%,
            50% 115%,
            70% 125%,
            85% 110%,
            95% 120%;
    }
    50% {
        background-position:
            15% 40%,
            25% 20%,
            55% 50%,
            65% 30%,
            80% 45%,
            90% 25%;
    }
    100% {
        background-position:
            20% -20%,
            35% -30%,
            45% -15%,
            75% -25%,
            88% -20%,
            92% -35%;
    }
}
.btn-bubbles:hover {
    background: var(--primary-darker);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-facebook {
    background: #1877F2;
    color: white;
}

.btn-facebook:hover {
    background: #166FE5;
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.cta {
    margin: 1em auto;
    width: auto !important;
    display: inline-block;
}


.icon-sm { width: 20px; height: 20px; }

.badge-link { display: inline-block; }
.badge-link img { height: 50px; width: auto; display: block; }

/* Small 'Coming soon' label under app-store badge */
.app-badge { display: inline-block; text-align: center; }
.coming-soon {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    letter-spacing: 0.02em;
}

.frame {
    background: var(--frame-bg);
    backdrop-filter: blur(10px) saturate(130%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    margin: 0 auto;
    box-shadow: 0 4px 8px 0 rgba(31, 38, 135, 0.1);
    border: thin solid rgba(255, 255, 255, 0.18);
}

.checkmark-img {
    height: 1.4em;
    display: inline-block;
    vertical-align: middle;
}

.img-mockup { width: 100%; }
.img-mockup picture { display: block; width: 100%; }
.img-mockup img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: contain;
    display: block;
}

.img-community {
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-community img {
    width: min(76%, 24rem);
    height: auto;
}

.showcase-text { margin-bottom: 0; }
.showcase-list { margin-bottom: 2rem; }
.showcase-list span {
    color: var(--accent);
    font-weight: 500;
}

.list {
    list-style: none;
    padding: 0;
}

.list-item {
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    position: relative;
    line-height: 1.6;
}

.list-item::before {
    content: "•";
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.list-header {
    font-size: 1.5rem;
    margin-top: 0;
}

.divider {
    margin-top: 2rem;
    padding-top: .5rem;
    border-top: 1px solid var(--border);
}

.site-header h2 {
    margin-bottom: 2em;
}


.footer {
    background: var(--bg-inverted);
    color: var(--bg);
    padding: 1.5rem 0;
}
.footer p { margin: 0; }

.modal {
    display: none;
    position: fixed;
    backdrop-filter: blur(4px);
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.2s;
}

.modal-box {
    background: var(--bg);
    margin: auto 0 0;
    border-radius: var(--radius-md);
    border-style: solid;
    border-color: var(--border);
    border-width: 1px 0 0 0;
    width: 100%;
    position: fixed;
    left: 0;
    bottom: 0;
    animation: slideUp 0.3s;
}

@media (min-width: 969px) {
    .modal-box {
        border-radius: var(--radius-md);
        width: min(40rem, 90%);
        margin: 0;
        border-width: 1px;
        position: relative;
        bottom: auto;
        animation: none;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }
}

.modal-content {
    overflow-y: auto;
    max-height: 92dvh;
    padding: 2rem;
}

.modal-close {
    color: var(--secondary);
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover { color: var(--text); }
.modal-box h2 { margin-bottom: 0.5rem; }
.modal-box > p { margin-bottom: 1.5rem; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.form-field { margin-bottom: 1.5rem; }

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-field);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-textarea { resize: vertical; }

.form-actions { display: flex; justify-content: flex-end; }

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--radius-sm);
    display: none;
}

.form-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.form-message.is-visible { display: block; }
.form-message.show { display: block; }



.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.5rem; }
.text-xl { font-size: 2.25rem; }
.text-2xl { font-size: 3rem; }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-color-inherit { color: inherit; }
.font-thin { font-weight: 100; }
.font-extralight { font-weight: 200; }
.font-light { font-weight: 300; }
.font-default { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-black { font-weight: 900; }
.line-tight { line-height: 1.2; }
.line-relaxed { line-height: 1.8; }


@media (min-width: 969px) {
    .order-3 { padding-right: 1rem; }
    .container {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
    .center-mobile { text-align: left; }
    .show-mobile-only { display: none !important; }
}
@media (max-width: 968px) {
    .show-desktop-only { display: none !important; }
    .grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .order-1 { order: 1; }
    .order-2 { order: 2; }
    .order-3 { order: 3; }

    .container-restrict-for-mobile {
        max-width: 32rem;
        margin-left: auto;
        margin-right: auto;
    }


    .flex {
        flex-direction: column;
        text-align: center;
    }

    .logo img {
        width: 120px;
        height: 120px;
    }

    .frame {
        padding: 2rem 1.5rem;
        border-radius: var(--radius-lg);
        width: 100%;
    }

    .text-xl { font-size: 2rem; }
    .text-lg { font-size: 1.125rem; }
}
@media (max-width: 460px) {
    .text-xl { font-size: 1.75rem; }
    .text-2xl { font-size: 2rem; }
}

/* Animation base: use `animate` (hidden by default) and toggle `animate-in` when visible. */
/* Effect classes like `animate-slide-in-from-right` or `animate-slide-in-from-bottom` define the initial transform. */
.js .animate {
    opacity: 0;
    will-change: opacity, transform;
    transition: opacity 600ms cubic-bezier(.2,.9,.2,1), transform 600ms cubic-bezier(.2,.9,.2,1);
    /* default transform is none; effect classes will override this */
    transform: none;
}

/* Effect initial offsets */
.js .animate-slide-in-from-right { transform: translateX(30px); }
.js .animate-slide-in-from-left { transform: translateX(-30px); }
.js .animate-slide-in-from-bottom { transform: translateY(24px); }
.js .animate-appear { transform: scale(0.8); }

/* When JS toggles `animate-in`, element becomes visible and transform is reset */
.js .animate.animate-in {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
    .js .animate {
        transition: none;
        transform: none;
        opacity: 1;
    }
}

/* Animation delay utilities (class-based). Use together with `.animate`.
   Example: `<div class="animate animate-slide-in-from-right animate-delay-250">` */
.js .animate-delay-50  { transition-delay: 50ms; }
.js .animate-delay-75  { transition-delay: 75ms; }
.js .animate-delay-100 { transition-delay: 100ms; }
.js .animate-delay-150 { transition-delay: 150ms; }
.js .animate-delay-200 { transition-delay: 200ms; }
.js .animate-delay-250 { transition-delay: 250ms; }
.js .animate-delay-300 { transition-delay: 300ms; }
.js .animate-delay-400 { transition-delay: 400ms; }
.js .animate-delay-500 { transition-delay: 500ms; }
.js .animate-delay-600 { transition-delay: 600ms; }
