/* iOS 26 "Liquid Glass" layer. Loaded after style.css; overrides it site-wide. */

:root {
    --glass-fill: rgba(255, 255, 255, 0.55);
    --glass-fill-strong: rgba(255, 255, 255, 0.78);
    --glass-edge: rgba(255, 255, 255, 0.85);
    --glass-shadow: 0 10px 40px rgba(20, 40, 90, 0.10), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
    --ink: #0b0b0f;
    --ink-2: #5b5f6b;
    --accent: #0066d6;
    --accent-2: #5e5ce6;
    --radius-xl: 28px;
    --radius-lg: 22px;
    --system-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --header-height: 64px;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --glass-fill: rgba(40, 42, 52, 0.55);
        --glass-fill-strong: rgba(44, 46, 58, 0.8);
        --glass-edge: rgba(255, 255, 255, 0.14);
        --glass-shadow: 0 10px 40px rgba(0, 0, 0, 0.45), 0 1px 0 rgba(255, 255, 255, 0.08) inset;
        --ink: #f5f5f7;
        --ink-2: #a1a6b3;
    }
}

:root[data-theme="dark"] {
    --glass-fill: rgba(40, 42, 52, 0.55);
    --glass-fill-strong: rgba(44, 46, 58, 0.8);
    --glass-edge: rgba(255, 255, 255, 0.14);
    --glass-shadow: 0 10px 40px rgba(0, 0, 0, 0.45), 0 1px 0 rgba(255, 255, 255, 0.08) inset;
    --ink: #f5f5f7;
    --ink-2: #a1a6b3;
}

/* Not ::before/::after: Font Awesome draws its icons there and needs its own font. */
body, button, input, select, textarea {
    font-family: var(--system-font);
    -webkit-font-smoothing: antialiased;
}

html {
    background: #eef2fb;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        background: #0b0c12;
    }
}

:root[data-theme="dark"] {
    background: #0b0c12;
}

body {
    color: var(--ink);
    background-color: #eef2fb;
    background-image:
        radial-gradient(60vmax 60vmax at 8% -10%, rgba(10, 132, 255, 0.22), transparent 60%),
        radial-gradient(55vmax 55vmax at 100% 10%, rgba(94, 92, 230, 0.18), transparent 60%),
        radial-gradient(50vmax 50vmax at 50% 110%, rgba(52, 199, 89, 0.12), transparent 60%);
    background-attachment: fixed;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) body {
        background-color: #0b0c12;
        background-image:
            radial-gradient(60vmax 60vmax at 8% -10%, rgba(10, 132, 255, 0.28), transparent 60%),
            radial-gradient(55vmax 55vmax at 100% 10%, rgba(94, 92, 230, 0.22), transparent 60%);
    }
}

/* Floating glass header */
header {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1100px, calc(100% - 24px));
    height: var(--header-height);
    border-radius: 999px;
    background: var(--glass-fill-strong);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid var(--glass-edge);
    box-shadow: var(--glass-shadow);
}

nav {
    padding: 0 18px 0 14px;
    max-width: none;
}

.logo {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
    gap: 10px;
}

.logo img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

.nav-links {
    gap: 4px;
}

.nav-links li a {
    color: var(--ink-2);
    font-size: 0.92rem;
    font-weight: 500;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
}

.nav-links li a:hover {
    color: var(--ink);
    background-color: rgba(127, 127, 140, 0.14);
}

.nav-links li:first-child a {
    color: var(--ink-2);
    font-weight: 500;
}

.hamburger span {
    background-color: var(--ink);
}

@media (max-width: 992px) {
    .nav-links {
        background: var(--glass-fill-strong);
        backdrop-filter: blur(28px) saturate(180%);
        -webkit-backdrop-filter: blur(28px) saturate(180%);
        border: 1px solid var(--glass-edge);
        box-shadow: var(--glass-shadow);
        border-radius: 24px;
    }
}

main {
    display: block;
    padding-top: calc(var(--header-height) + 40px);
}

/* Hero */
.hero {
    padding: clamp(48px, 9vw, 110px) 20px clamp(40px, 6vw, 72px);
    background: none;
    text-align: center;
}

.hero-content {
    max-width: 860px;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(2.4rem, 6.4vw, 4.4rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.05;
    color: var(--ink);
    background: none;
    -webkit-text-fill-color: currentColor;
}

.hero p {
    margin: 18px auto 0;
    max-width: 620px;
    font-size: clamp(1.05rem, 2.2vw, 1.3rem);
    color: var(--ink-2);
}

.console-profiles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.console-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(10, 132, 255, 0.35);
    transition: transform 0.2s ease, filter 0.2s ease;
}

.console-link:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
}

.console-link:nth-child(2) {
    background: #1f8a4c;
    box-shadow: 0 8px 24px rgba(31, 138, 76, 0.3);
}

.console-link:nth-child(3) {
    background: #3b5bdb;
    box-shadow: 0 8px 24px rgba(59, 91, 219, 0.3);
}

/* Short direct answer for answer engines (AEO) */
.hero .answer {
    max-width: 680px;
    margin: 26px auto 0;
    padding: 14px 18px;
    border-radius: var(--radius-lg);
    background: var(--glass-fill);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-edge);
    font-size: 0.98rem;
    color: var(--ink-2);
    text-align: left;
}

.hero .answer strong {
    color: var(--ink);
}

/* Apps: App Store / Play listing style */
.apps {
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px 20px 40px;
    background: none;
}

.apps h2,
.about h2,
.faq h2,
.contact h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--ink);
    margin-bottom: 26px;
    text-align: left;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
    gap: 18px;
}

.app-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 22px;
    border-radius: var(--radius-xl);
    background: var(--glass-fill);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border: 1px solid var(--glass-edge);
    box-shadow: var(--glass-shadow);
    text-align: left;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.app-card:hover {
    transform: translateY(-3px);
}

.app-icon {
    width: 84px;
    height: 84px;
    margin-bottom: 6px;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.app-icon picture,
.app-icon img {
    display: block;
    width: 100%;
    height: 100%;
}

.app-icon img {
    object-fit: cover;
}

.app-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.app-card p {
    font-size: 0.93rem;
    color: var(--ink-2);
    line-height: 1.45;
}

/* The whole card opens the detail sheet. The button sits under the content;
   only the store links stay clickable on top of it. */
.app-card {
    position: relative;
}

.app-card > * {
    pointer-events: none;
}

.app-open {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: inherit;
    background: transparent;
    cursor: pointer;
    pointer-events: auto;
    -webkit-appearance: none;
    appearance: none;
}

.app-card .app-links {
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

.app-card .app-links a {
    pointer-events: auto;
}

/* Detail sheet: opened from a card, shows icon, text, store links and screenshots */
.app-sheet {
    margin: auto;
    width: min(760px, calc(100% - 24px));
    max-height: min(90vh, 920px);
    padding: 0;
    border: 1px solid var(--glass-edge);
    border-radius: var(--radius-xl);
    background: var(--glass-fill-strong);
    backdrop-filter: blur(32px) saturate(180%);
    -webkit-backdrop-filter: blur(32px) saturate(180%);
    box-shadow: var(--glass-shadow);
    color: var(--ink);
    overflow: hidden;
}

.app-sheet::backdrop {
    background: rgba(8, 12, 28, 0.38);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.app-sheet[open] {
    animation: app-sheet-in 0.28s ease-out;
}

@keyframes app-sheet-in {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
}

.app-sheet-body {
    max-height: min(90vh, 920px);
    overflow-y: auto;
    padding: 28px 24px 24px;
    -webkit-overflow-scrolling: touch;
}

.app-sheet-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: var(--glass-fill-strong);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 2px 8px rgba(0, 0, 0, 0.12);
    color: var(--ink);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.app-sheet-head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-right: 44px;
}

.app-sheet-head .app-icon {
    flex: 0 0 auto;
    width: 84px;
    height: 84px;
    margin: 0;
}

.app-sheet h2 {
    font-size: clamp(1.35rem, 3.6vw, 1.7rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--ink);
    margin: 0;
    text-align: left;
}

.app-sheet p {
    margin: 16px 0 0;
    font-size: 0.98rem;
    color: var(--ink-2);
    line-height: 1.5;
}

.app-sheet .app-links {
    margin-top: 16px;
}

.app-sheet .app-shots {
    width: calc(100% + 48px);
    margin: 18px -24px 4px;
    padding: 4px 24px 12px;
}

.app-sheet .app-shots img {
    height: 440px;
}

@media (max-width: 600px) {
    .app-sheet {
        width: calc(100% - 16px);
        max-height: 94vh;
        border-radius: 26px;
    }

    .app-sheet-body {
        max-height: 94vh;
        padding: 24px 18px 20px;
    }

    .app-sheet-head .app-icon {
        width: 68px;
        height: 68px;
        border-radius: 18px;
    }

    .app-sheet .app-shots {
        width: calc(100% + 36px);
        margin: 16px -18px 4px;
        padding: 4px 18px 12px;
    }

    .app-sheet .app-shots img {
        height: 380px;
    }
}

/* Screenshot strip, like the Play Store listing */
.app-shots {
    display: flex;
    gap: 10px;
    width: calc(100% + 44px);
    margin: 12px -22px 6px;
    padding: 4px 22px 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.app-shots::-webkit-scrollbar {
    display: none;
}

.app-shots img {
    flex: 0 0 auto;
    height: 300px;
    width: auto;
    border-radius: 18px;
    border: 1px solid var(--glass-edge);
    scroll-snap-align: start;
    background: rgba(127, 127, 140, 0.12);
}

.app-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    width: 100%;
}

.store-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    transition: filter 0.2s ease;
}

.store-link:hover {
    filter: brightness(1.08);
}

/* Other sections */
.about,
.faq,
.contact {
    max-width: 1180px;
    margin: 0 auto;
    padding: 40px 20px;
    background: none;
}

.about > *,
.faq > *,
.contact > * {
    max-width: 100%;
}

.faq details,
.faq .faq-item,
.faq .faq-question {
    border-radius: var(--radius-lg);
    background: var(--glass-fill);
    border: 1px solid var(--glass-edge);
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.footer {
    background: var(--glass-fill);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid var(--glass-edge);
    color: var(--ink-2);
}

.footer a {
    color: var(--ink-2);
}

.footer a:hover {
    color: var(--ink);
}

a:focus-visible,
button:focus-visible,
.console-link:focus-visible,
.store-link:focus-visible {
    outline: 3px solid rgba(10, 132, 255, 0.55);
    outline-offset: 3px;
}

@media (max-width: 600px) {
    :root {
        --header-height: 58px;
    }

    header {
        top: 8px;
        width: calc(100% - 16px);
    }

    .hero h1 {
        letter-spacing: -0.03em;
    }

    .app-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .app-shots img {
        height: 260px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
