:root {
    --gloe-font: 'Avenir Next', 'Avenir Next LT Pro', Avenir, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --gloe-blue-text: #0088CA;
    --gloe-blue-text-rgb: 0, 136, 202;
    --gloe-blue-rgb: 22, 171, 228;
    --gloe-blue-soft-rgb: 142, 220, 229;
    --gloe-blue-pale: #BCEAEE;
    --gloe-blue-mid: #8EDCE5;
    --page-bg-radial: radial-gradient(circle at center, rgb(187, 218, 231) 0%, rgb(187, 218, 231) 55%, rgb(205, 234, 251) 100%);
    --card-surface-bg: radial-gradient(
        circle at center,
        rgb(187 218 231 / 0.55) 0%,
        rgb(187 218 231 / 0.55) 55%,
        rgb(205 234 251 / 0.55) 100%
    ), rgba(255, 255, 255, 0.3);
}

@supports (color: color(display-p3 0 0 0)) {
    :root {
        --gloe-blue-text: color(display-p3 0.06 0.52 0.764);
    }
}

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

body {
    font-family: var(--gloe-font);
    line-height: 1.6;
    color: #1a1a1a;
    background: var(--page-bg-radial);
    min-height: 100vh;
}

body img {
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
}

.site-header {
    max-width: 1152px;
    margin: 0 auto;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    gap: 16px;
}

.site-nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
}

.site-header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.site-header-brand img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
}

.site-header-brand span {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

.site-nav a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--gloe-blue-text);
}

.site-header-trailing {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    justify-content: flex-end;
    min-width: 0;
}

.lang-menu {
    position: relative;
}

.lang-menu-trigger {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border: 1px solid rgba(var(--gloe-blue-rgb), 0.35);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    color: #1a1a1a;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s ease;
}

.lang-menu-trigger:hover,
.lang-menu.open .lang-menu-trigger {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(var(--gloe-blue-rgb), 0.5);
}

.lang-chevron {
    font-size: 0.7rem;
    color: #6b7280;
    margin-left: 2px;
}

.lang-menu-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 148px;
    list-style: none;
    background: rgba(255, 255, 255, 0.98);
    border: 0.4px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 6px;
    z-index: 100;
}

.lang-menu-option {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #1a1a1a;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}

.lang-menu-option:hover {
    background: rgba(var(--gloe-blue-rgb), 0.1);
}

.lang-menu-option.active {
    background: rgba(var(--gloe-blue-rgb), 0.15);
    color: var(--gloe-blue-text);
}

.lang-flag {
    font-size: 1.1rem;
    line-height: 1;
    flex-shrink: 0;
}

.header-app-store {
    display: inline-block;
    text-decoration: none;
}

.header-app-store .app-store-badge {
    height: 44px;
    width: auto;
    display: block;
}

.site-main {
    padding: 0 30px 16px;
}

.site-lang-bar {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 30px 16px;
    display: flex;
    justify-content: center;
}

.site-lang-bar .lang-menu-dropdown {
    top: auto;
    bottom: calc(100% + 8px);
    left: 50%;
    right: auto;
    transform: translateX(-50%);
}

.site-footer {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 30px 40px;
    text-align: center;
}

.site-footer .footer {
    margin-top: 0;
    padding-top: 20px;
}

.container {
    background: var(--card-surface-bg);
    border-radius: 23px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 0.4px solid rgba(0, 0, 0, 0.1);
    padding: 60px;
    max-width: 1080px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    position: relative;
    overflow: hidden;
    container-type: inline-size;
    container-name: home-card;
}

.container-left {
    text-align: left;
}

.container.legal-doc {
    max-width: 900px;
    margin-top: 0;
    padding-top: 36px;
}

.legal-doc-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 32px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.legal-doc-title-app {
    font-weight: 700;
}

.legal-doc-meta {
    background: #f8fafc;
    border: 0.4px solid rgba(0, 0, 0, 0.1);
    border-radius: 23px;
    padding: 20px;
    margin-bottom: 40px;
    display: flex;
    justify-content: space-around;
    gap: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.legal-doc-meta-item {
    text-align: center;
}

.legal-doc-meta-label {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 5px;
}

.legal-doc-meta-value {
    font-size: 1rem;
    color: #1a1a1a;
    font-weight: 600;
}

.legal-doc h2 {
    color: #1a1a1a;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
    text-align: left;
}

.legal-doc h3 {
    color: #1a1a1a;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 30px 0 15px;
    text-align: left;
}

.legal-doc h4 {
    color: #1a1a1a;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 25px 0 12px;
    text-align: left;
}

.legal-doc p {
    margin-bottom: 20px;
    color: #4b5563;
    font-size: 1rem;
    text-align: left;
}

.legal-doc ul {
    margin-bottom: 20px;
    padding-left: 30px;
    color: #4b5563;
    text-align: left;
}

.legal-doc li {
    margin-bottom: 10px;
}

.legal-doc a {
    color: var(--gloe-blue-text);
    text-decoration: none;
}

.legal-doc a:hover {
    text-decoration: underline;
}

.legal-doc-callout,
.legal-doc-warning {
    background: rgba(var(--gloe-blue-soft-rgb), 0.15);
    border-left: 4px solid var(--gloe-blue-text);
    padding: 20px;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
}

.legal-doc-callout strong,
.legal-doc-warning strong {
    color: #0E8CC7;
    font-weight: 600;
}

.legal-doc-updated {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    color: #6b7280;
    font-size: 0.9rem;
}

.legal-doc p.legal-doc-updated {
    text-align: center;
}

.logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    display: block;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 1.25rem;
    color: #6b7280;
    margin-bottom: 50px;
    font-weight: 400;
}

.subtitle:has(+ .hero-trust) {
    margin-bottom: 14px;
}

.home-hero {
    max-width: 1800px;
    margin: 0 auto 32px;
    width: 100%;
    text-align: center;
}

.hero-head {
    width: 100%;
    margin-bottom: 20px;
}

.hero-stage {
    width: 100%;
}

.hero-media {
    margin: 0;
}

.hero-image {
    margin: 0;
    display: block;
    position: relative;
}

.hero-image::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
}

.hero-image img {
    width: auto;
    max-width: 100%;
    height: auto;
    display: block;
}

.hero-media-spacer {
    display: none;
}

.hero-copy {
    margin-bottom: 0;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #6b7280;
    font-weight: 400;
    line-height: 1.4;
    margin: 0;
}

@media (min-width: 769px) {
    .hero-stage {
        display: grid;
        grid-template: 1fr / 1fr;
        margin-left: -30px;
        width: calc(100% + 30px);
    }

    .hero-media {
        grid-area: 1 / 1;
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        justify-content: flex-start;
        justify-self: start;
        align-self: start;
        width: fit-content;
        max-width: 100%;
        margin: 0;
        padding: 0;
        z-index: 0;
    }

    .hero-image,
    .hero-image img {
        margin: 0;
        padding: 0;
    }

    .hero-media-spacer {
        display: block;
        flex: 0 0 auto;
        width: 0;
        align-self: stretch;
        min-height: 1px;
    }

    .hero-copy {
        grid-area: 1 / 1;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        justify-content: center;
        justify-self: end;
        align-self: stretch;
        width: 100%;
        max-width: 40%;
        text-align: right;
        z-index: 1;
    }

    .hero-copy .hero-title,
    .hero-copy .hero-subtitle {
        text-align: right;
        max-width: 100%;
    }

    .hero-head .hero-title {
        margin: 0 0 12px;
        font-size: 3rem;
        letter-spacing: -0.02em;
        line-height: 1.12;
    }
}

@media (max-width: 768px) {
    .hero-media {
        margin-bottom: 20px;
    }

    .hero-head .hero-image,
    .hero-head .hero-image img {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-copy {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero-head .hero-title {
        text-align: center;
        margin-bottom: 10px;
    }

    .hero-head .hero-subtitle {
        text-align: center;
        margin-bottom: 0;
    }
}

.hero-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.92rem;
    color: #6b7280;
    margin: 0 auto 28px;
    max-width: 640px;
    line-height: 1.5;
}

.hero-trust-text {
    white-space: pre;
}

.hero-trust-flag {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.12));
}

.description {
    font-size: 1.1rem;
    color: #4b5563;
    margin-bottom: 40px;
    max-width: 600px;
    text-align: left;
}

.container-left .description {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
}

.footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(107, 114, 128, 0.7);
    color: #6b7280;
    font-size: 0.9rem;
}

.legal-links {
    margin: 0 0 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 10px;
    row-gap: 14px;
    text-align: center;
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.5;
}

.legal-links a {
    color: var(--gloe-blue-text);
    text-decoration: none;
}

.legal-sep {
    color: #d1d5db;
}

.contact-link {
    margin: 30px 0;
    text-align: center;
}

.contact-link a {
    color: var(--gloe-blue-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}

.home-hero .app-store-card {
    margin-top: 0;
    margin-bottom: 0;
}

.hero-actions {
    margin-bottom: 48px;
}

.app-store-card {
    margin: 40px auto;
    background: var(--card-surface-bg);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 0.4px solid rgba(0, 0, 0, 0.1);
    max-width: 500px;
}

.app-store-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.app-store-card-icon {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.app-store-card-info {
    text-align: left;
    min-width: 0;
}

.app-store-card-info h2 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.app-store-card-info p {
    margin: 0;
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.8;
}

.app-store-card-action {
    text-align: center;
    padding-top: 10px;
}

.app-store-card-action a {
    display: inline-block;
    text-decoration: none;
    margin: 10px;
}

.app-store-card-action .app-store-badge {
    height: 50px;
    width: auto;
    display: block;
}

.app-store-card-trial {
    margin: 8px 0 0;
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.4;
}

.blog-previews {
    text-align: left;
    max-width: 984px;
    margin: 0 auto;
}

.blog-previews h2 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    text-align: left;
}

.blog-preview-card {
    padding: 24px 0;
    margin-bottom: 0;
    border-bottom: 0.4px solid rgba(0, 0, 0, 0.08);
}

.blog-preview-card:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.blog-preview-card:first-of-type {
    padding-top: 0;
}

.blog-preview-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.blog-preview-card h3 a {
    color: #1a1a1a;
    text-decoration: none;
}

.blog-preview-card h3 a:hover {
    color: var(--gloe-blue-text);
}

.blog-preview-card .meta {
    color: #6b7280;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.blog-preview-card p {
    color: #4b5563;
    margin-bottom: 12px;
}

.blog-preview-card .read-more,
.blog-list .read-more {
    color: var(--gloe-blue-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.blog-list .read-more {
    display: inline-block;
    margin-top: 4px;
}

.view-all-blog {
    display: block;
    text-align: center;
    margin-top: 24px;
    color: var(--gloe-blue-text);
    text-decoration: none;
    font-weight: 600;
}

.blog-list {
    list-style: none;
}

.blog-list li {
    margin-bottom: 24px;
}

.blog-list h2 {
    font-size: 1.25rem;
    margin-bottom: 6px;
}

.blog-list h2 a {
    color: #1a1a1a;
    text-decoration: none;
}

.blog-list h2 a:hover {
    color: var(--gloe-blue-text);
}

.blog-list .meta {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.blog-list p {
    color: #4b5563;
}

.content h2 {
    margin: 28px 0 12px;
    font-size: 1.25rem;
}

.content p {
    margin-bottom: 16px;
    color: #4b5563;
}

.content a {
    color: var(--gloe-blue-text);
}

.content .blog-app-cta {
    margin-top: 32px;
    padding-top: 24px;
}

.article-meta {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 32px;
}

@media (max-width: 768px) {
    .container {
        padding: 32px 20px;
    }

    h1 {
        font-size: 2.5rem;
    }

    .site-header {
        flex-wrap: wrap;
        padding: 16px 20px;
        position: relative;
    }

    .site-nav {
        flex: 1 1 100%;
        justify-content: center;
    }

    .site-header-brand {
        position: static;
        transform: none;
        flex: 1 1 100%;
        justify-content: center;
        margin: 4px 0;
    }

    .site-header-trailing {
        flex: 1 1 100%;
        justify-content: center;
    }

    .site-lang-bar {
        padding: 0 20px 16px;
    }

    .legal-doc-title {
        font-size: 1.625rem;
    }

    .container.legal-doc {
        padding-top: 24px;
    }

    .legal-doc-meta {
        flex-direction: column;
    }
}
