/* ============================================================
           Calorie Vita — iOS 26 "Liquid Glass" design system
           System fonts only (SF on Apple, Segoe on Windows, Roboto on
           Android) so there is zero webfont cost on any device.
           ============================================================ */

        :root {
            color-scheme: light dark;

            --font-sans: "Bricolage Grotesque", ui-sans-serif, system-ui,
                -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
            --nav-glass: rgba(255, 255, 255, 0.20);

            /* Brand palette — sampled from the Calorie Vita app UI */
            --blue: #1160d0;          /* app primary, darkened to pass AA on light */
            --blue-bright: #2072f9;   /* app icon tiles, glows */
            --blue-deep: #0d4ba6;     /* pressed / hover */
            --go: #128040;            /* PRIMARY CTA fill — white label passes AA */
            --go-press: #0e6b34;
            --green: #0e6b34;         /* ticks, "yes" marks (as text) */
            --amber: #b8800a;         /* app: manual-entry tile */
            --rose: #c0356a;          /* app: gallery tile */

            /* Frosted daylight: a blue-tinted ground, not flat white, so the
               white glass panels actually have something to float above. */
            --bg: #e9eef7;
            --bg-elev: #ffffff;
            --ink: #0b1220;
            --ink-2: #364256;
            --muted: #5a6780;
            --hairline: rgba(11, 18, 32, 0.09);
            --hairline-strong: rgba(11, 18, 32, 0.15);

            /* Liquid glass materials */
            --glass: rgba(255, 255, 255, 0.70);
            --glass-thick: rgba(255, 255, 255, 0.86);
            --glass-edge: rgba(255, 255, 255, 0.95);
            /* Specular: the light-catching top edge that makes glass read as glass. */
            --specular: rgba(255, 255, 255, 0.95);
            --glass-shadow: inset 0 1px 0 var(--specular), 0 4px 24px rgba(11, 18, 32, 0.07), 0 1px 2px rgba(11, 18, 32, 0.05);
            --glass-shadow-lg: inset 0 1px 0 var(--specular), 0 20px 60px rgba(11, 18, 32, 0.13), 0 2px 8px rgba(11, 18, 32, 0.06);
            --tint: rgba(20, 80, 214, 0.09);

            /* iOS continuous corner radii */
            --r-sm: 12px;
            --r-md: 18px;
            --r-lg: 26px;
            --r-xl: 34px;
            --r-2xl: 44px;

            /* Apple spring easing */
            --spring: cubic-bezier(0.32, 0.72, 0, 1);
            --ease: cubic-bezier(0.4, 0, 0.22, 1);

            --nav-h: 52px;
        }

        /* Dark theme. Defined twice so an explicit toggle wins in both
           directions and the system preference still applies by default. */
        @media (prefers-color-scheme: dark) {
            :root:not([data-theme="light"]) {
                --bg: #1a1d23;
                --bg-elev: #242832;
                --nav-glass: rgba(26, 29, 35, 0.28);
                --ink: #f2f5f9;
                --ink-2: #ccd4e0;
                --muted: #949eb0;
                --hairline: rgba(255, 255, 255, 0.10);
                --hairline-strong: rgba(255, 255, 255, 0.17);
                --glass: rgba(48, 54, 66, 0.55);
                --glass-thick: rgba(48, 54, 66, 0.76);
                --glass-edge: rgba(255, 255, 255, 0.10);
                --specular: rgba(255, 255, 255, 0.09);
                --glass-shadow: inset 0 1px 0 var(--specular), 0 4px 22px rgba(0, 0, 0, 0.34);
                --glass-shadow-lg: inset 0 1px 0 var(--specular), 0 20px 58px rgba(0, 0, 0, 0.5);
                --tint: rgba(46, 134, 255, 0.16);
                --blue: #2e86ff;
                --blue-bright: #4f9bff;
                --blue-deep: #1f6ad6;
                --go: #128040;
                --go-press: #0e6b34;
                --green: #22c55e;
                --amber: #fbaf05;
                --rose: #ff6f9b;
            }
        }

        :root[data-theme="dark"] {
            --bg: #1a1d23;
            --bg-elev: #242832;
            --ink: #f2f5f9;
            --ink-2: #ccd4e0;
            --muted: #949eb0;
            --hairline: rgba(255, 255, 255, 0.10);
            --hairline-strong: rgba(255, 255, 255, 0.17);
            --glass: rgba(48, 54, 66, 0.55);
            --glass-thick: rgba(48, 54, 66, 0.76);
            --glass-edge: rgba(255, 255, 255, 0.10);
            --specular: rgba(255, 255, 255, 0.09);
            --glass-shadow: inset 0 1px 0 var(--specular), 0 4px 22px rgba(0, 0, 0, 0.34);
            --glass-shadow-lg: inset 0 1px 0 var(--specular), 0 20px 58px rgba(0, 0, 0, 0.5);
            --tint: rgba(46, 134, 255, 0.16);
            --blue: #2e86ff;
            --blue-bright: #4f9bff;
            --blue-deep: #1f6ad6;
            --go: #128040;
            --go-press: #0e6b34;
            --green: #22c55e;
            --amber: #fbaf05;
            --rose: #ff6f9b;
        }


        /* Keep native controls, scrollbars and form widgets in step with an
           explicit choice. */
        :root[data-theme="dark"] { color-scheme: dark; }
        :root[data-theme="light"] { color-scheme: light; }

        /* ---------- Theme toggle ---------- */
        .theme-toggle {
            display: inline-grid;
            place-items: center;
            width: 36px;
            height: 36px;
            flex: none;
            border: 1px solid var(--glass-edge);
            border-radius: 50%;
            background: var(--glass);
            -webkit-backdrop-filter: blur(20px) saturate(180%);
            backdrop-filter: blur(20px) saturate(180%);
            color: var(--ink-2);
            cursor: pointer;
            box-shadow: var(--glass-shadow);
            transition: transform 0.32s var(--spring), color 0.25s var(--ease);
        }

        .theme-toggle:hover { transform: scale(1.08); color: var(--blue); }
        .theme-toggle:active { transform: scale(0.94); }
        .theme-toggle .icon { width: 17px; height: 17px; }

        /* Show the icon for the theme you'd switch TO. */
        .theme-toggle .i-sun { display: none; }
        :root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
        :root[data-theme="dark"] .theme-toggle .i-moon { display: none; }

        @media (prefers-color-scheme: dark) {
            :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
            :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
        }

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

        html {
            -webkit-text-size-adjust: 100%;
            /* `clip` contains overflow without creating a scroll container, so
               position:sticky keeps anchoring to the viewport. */
            overflow-x: hidden;
            overflow-x: clip;
        }

        @media (prefers-reduced-motion: no-preference) {
            html { scroll-behavior: smooth; }
        }

        body {
            font-family: var(--font-sans);
            font-size: 17px;
            line-height: 1.47;
            letter-spacing: -0.004em;
            color: var(--ink);
            background: var(--bg);
            overflow-x: hidden;
            overflow-x: clip;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            text-rendering: optimizeLegibility;
        }

        /* Ambient light — the "liquid" behind the glass */
        body::before {
            content: "";
            position: fixed;
            inset: 0;
            z-index: -1;
            pointer-events: none;
            background:
                radial-gradient(64rem 44rem at 10% -8%, rgba(20, 80, 214, 0.13), transparent 62%),
                radial-gradient(56rem 42rem at 92% 2%, rgba(59, 130, 255, 0.10), transparent 62%),
                radial-gradient(60rem 44rem at 50% 112%, rgba(18, 128, 64, 0.07), transparent 64%);
        }

        @media (prefers-color-scheme: dark) {
            :root:not([data-theme="light"]) body::before {
                background:
                    radial-gradient(60rem 40rem at 12% -6%, rgba(46, 134, 255, 0.13), transparent 62%),
                    radial-gradient(52rem 40rem at 88% 6%, rgba(46, 134, 255, 0.08), transparent 62%);
            }
        }

        :root[data-theme="dark"] body::before {
            background:
                radial-gradient(60rem 40rem at 12% -6%, rgba(46, 134, 255, 0.13), transparent 62%),
                radial-gradient(52rem 40rem at 88% 6%, rgba(46, 134, 255, 0.08), transparent 62%);
        }

        h1, h2, h3, h4 {
            font-family: var(--font-sans);
            font-weight: 700;
            letter-spacing: -0.018em;
            line-height: 1.08;
            text-wrap: balance;
        }

        h1 { font-size: clamp(2.4rem, 6.2vw, 4.2rem); letter-spacing: -0.038em; }
        h2 { font-size: clamp(1.85rem, 4.3vw, 3rem); font-weight: 500; }
        h3 { font-size: clamp(1.08rem, 2vw, 1.3rem); letter-spacing: -0.022em; }
        h4 { font-size: 1.06rem; letter-spacing: -0.02em; }

        p { text-wrap: pretty; }

        a {
            color: inherit;
            text-decoration: none;
            -webkit-tap-highlight-color: transparent;
        }

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

        :focus-visible {
            outline: 2.5px solid var(--blue);
            outline-offset: 3px;
            border-radius: 6px;
        }

        .container {
            width: min(1140px, 100% - 2.75rem);
            margin-inline: auto;
        }

        @media (max-width: 480px) {
            .container { width: calc(100% - 2rem); }
        }

        .section {
            padding: clamp(3.75rem, 9vw, 7.5rem) 0;
        }

        .text-gradient {
            /* Solid, not a gradient. Gradient headline text is the other big
               "generated page" tell — Apple sets headlines in one colour. */
            color: var(--blue);
        }

        /* ---------- Inline SF-style icon system (no icon font, no CDN) ---------- */
        .icon {
            width: 1em;
            height: 1em;
            flex: none;
            fill: none;
            stroke: currentColor;
            stroke-width: 1.9;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .icon-fill { fill: currentColor; stroke: none; }

        /* ---------- Glass primitives ---------- */
        .glass {
            background: var(--glass);
            -webkit-backdrop-filter: blur(28px) saturate(180%);
            backdrop-filter: blur(28px) saturate(180%);
            border: 1px solid var(--glass-edge);
            box-shadow: var(--glass-shadow);
        }

        /* ---------- Navigation ---------- */
        .navbar {
            position: sticky;
            top: 0;
            z-index: 100;
            padding: 1rem 0;
            padding-top: max(1rem, env(safe-area-inset-top));
            background: var(--nav-glass);
            -webkit-backdrop-filter: blur(24px) saturate(180%);
            backdrop-filter: blur(24px) saturate(180%);
            transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
        }

        .nav-inner {
            position: relative;
            display: grid;
            grid-template-columns: auto minmax(0, 1fr) auto;
            align-items: center;
            gap: 1.25rem;
            height: var(--nav-h);
            padding: 0;
        }

        .navbar .container { width: min(1400px, 100% - 2.5rem); }

        /* Cal AI centres its nav absolutely, but they carry 5 links and no
           language or theme controls. With 8 links plus both controls plus two
           store badges, absolute centring overlaps the actions — so the nav is
           centred in whatever space is actually left over. Same read, no
           collision at any width. */
        @media (min-width: 1120px) {
            .nav-links {
                justify-content: center;
                padding-inline: 1.25rem;
                gap: clamp(14px, 1.6vw, 30px);
                overflow: visible;
                -webkit-mask-image: none;
                mask-image: none;
            }
            .nav-links a {
                padding: 0.25rem 0;
                font-size: clamp(0.85rem, 0.72rem + 0.28vw, 1rem);
            }
            .nav-links a:hover { background: transparent; }
        }

        .brand {
            display: inline-flex;
            align-items: center;
            gap: 0.55rem;
            min-width: 0;
            font-weight: 700;
            font-size: 1.02rem;
            letter-spacing: -0.024em;
            white-space: nowrap;
        }

        .brand img {
            width: 30px;
            height: 30px;
            border-radius: 9px;
        }

        .nav-links {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.05rem;
            min-width: 0;
            overflow-x: auto;
            scrollbar-width: none;
            -webkit-mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 24px), transparent);
            mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 24px), transparent);
        }

        .nav-links::-webkit-scrollbar { display: none; }

        .nav-actions {
            display: flex;
            align-items: center;
            gap: 0.55rem;
            flex: none;
        }

        .nav-links a {
            position: relative;
            flex: none;
            padding: 0.45rem clamp(0.45rem, 1vw, 0.72rem);
            border-radius: 999px;
            font-size: clamp(0.78rem, 0.7rem + 0.3vw, 0.875rem);
            font-weight: 500;
            color: var(--ink-2);
            white-space: nowrap;
            transition: color 0.25s var(--ease), background 0.25s var(--ease);
        }

        .nav-links a:hover {
            color: var(--ink);
            background: var(--tint);
        }

        .nav-cta {
            flex: none;
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            padding: 0.55rem 1.05rem;
            border-radius: 999px;
            background: var(--blue);
            color: #fff;
            font-size: 0.875rem;
            font-weight: 600;
            letter-spacing: -0.01em;
            box-shadow: 0 2px 10px rgba(20, 80, 214, 0.32);
            transition: transform 0.32s var(--spring), box-shadow 0.32s var(--ease), background 0.25s var(--ease);
        }

        .nav-cta:hover {
            background: var(--blue-deep);
            transform: scale(1.035);
            box-shadow: 0 6px 20px rgba(20, 80, 214, 0.4);
        }

        .nav-cta:active { transform: scale(0.97); }

        .nav-toggle {
            display: none;
            flex: none;
            width: 38px;
            height: 38px;
            border: 0;
            border-radius: 50%;
            background: var(--tint);
            color: var(--ink);
            font-size: 1.15rem;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }

        @media (max-width: 1000px) {
            .nav-links { display: none; }
            .nav-toggle { display: inline-flex; }
            .nav-cta { display: none; }
        }

        /* Mobile sheet — iOS style */
        .nav-sheet {
            position: fixed;
            inset: 0;
            z-index: 200;
            display: none;
            padding: 1rem;
            padding-top: max(1rem, env(safe-area-inset-top));
            background: rgba(0, 0, 0, 0.28);
            -webkit-backdrop-filter: blur(6px);
            backdrop-filter: blur(6px);
        }

        .nav-sheet[open] { display: block; }

        .nav-sheet-panel {
            max-width: 520px;
            margin: 0 auto;
            padding: 0.6rem;
            border-radius: var(--r-xl);
            background: var(--glass-thick);
            -webkit-backdrop-filter: blur(30px) saturate(190%);
            backdrop-filter: blur(30px) saturate(190%);
            border: 1px solid var(--glass-edge);
            box-shadow: var(--glass-shadow-lg);
            animation: sheet-in 0.45s var(--spring) both;
        }

        @keyframes sheet-in {
            from { opacity: 0; transform: translateY(-14px) scale(0.97); }
            to { opacity: 1; transform: none; }
        }

        .nav-sheet-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0.5rem 0.6rem 0.75rem;
        }

        .nav-sheet-head span { font-weight: 700; letter-spacing: -0.02em; }

        .nav-sheet-close {
            width: 32px;
            height: 32px;
            border: 0;
            border-radius: 50%;
            background: var(--tint);
            color: var(--ink);
            cursor: pointer;
            font-size: 1.1rem;
            line-height: 1;
        }

        .nav-sheet-panel a {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0.85rem 0.9rem;
            border-radius: var(--r-sm);
            font-size: 1.02rem;
            font-weight: 500;
            color: var(--ink);
            transition: background 0.2s var(--ease);
        }

        .nav-sheet-panel a + a { box-shadow: inset 0 1px 0 var(--hairline); }
        .nav-sheet-panel a:active { background: var(--tint); }
        .nav-sheet-panel a .icon { color: var(--muted); width: 0.85em; height: 0.85em; }

        .nav-sheet-cta {
            display: block;
            margin-top: 0.55rem;
            padding: 0.95rem;
            border-radius: var(--r-md);
            background: var(--blue);
            color: #fff !important;
            text-align: center;
            font-weight: 600;
            justify-content: center !important;
        }

        /* ---------- Chips ---------- */
        .chip {
            display: inline-flex;
            align-items: center;
            gap: 0.42rem;
            padding: 0.38rem 0.85rem;
            border-radius: 999px;
            background: var(--glass-thick);
            -webkit-backdrop-filter: blur(20px) saturate(180%);
            backdrop-filter: blur(20px) saturate(180%);
            border: 1px solid var(--glass-edge);
            box-shadow: var(--glass-shadow);
            font-size: 0.795rem;
            font-weight: 600;
            letter-spacing: -0.008em;
            color: var(--ink-2);
        }

        .chip .icon { color: var(--blue); width: 0.95em; height: 0.95em; }

        
/* ---------- Footer ---------- */
        footer {
            padding: 2.5rem 0;
            padding-bottom: max(2.5rem, calc(1.5rem + env(safe-area-inset-bottom)));
            border-top: 1px solid var(--hairline);
        }

        .footer-inner {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
        }

        .footer-inner p { font-size: 0.855rem; color: var(--muted); }

        .footer-links {
            display: flex;
            flex-wrap: wrap;
            gap: 0.3rem;
        }

        .footer-links a {
            padding: 0.4rem 0.72rem;
            border-radius: 999px;
            font-size: 0.855rem;
            color: var(--ink-2);
            transition: background 0.25s var(--ease), color 0.25s var(--ease);
        }

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

        @media (max-width: 620px) {
            .footer-inner { justify-content: center; text-align: center; }
        }

        /* ---------- Scroll reveal ---------- */
        .reveal {
            opacity: 0;
            transform: translateY(22px);
            transition: opacity 0.75s var(--ease), transform 0.75s var(--spring);
        }

        .reveal.visible { opacity: 1; transform: none; }

        @media (prefers-reduced-motion: reduce) {
            .reveal { opacity: 1; transform: none; transition: none; }
            *, *::before, *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }
        }

        /* Older browsers without backdrop-filter get solid surfaces */
        @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
            .nav-inner, .chip, .metrics, .floating-chip, .gallery-wrap, .visual-card,
            .feature-pro, .step, .compare-table, .persona, .quote, .verify-card,
            .faq-list, .cta-panel, .nav-sheet-panel, .hero-link {
                background: var(--bg-elev);
            }
        }

/* ---------- Shared page components (sub-pages) ---------- */
.page-hero {
    padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2.5rem);
}

.page-hero h1 {
    margin-top: 1rem;
    font-size: clamp(2.05rem, 5vw, 3.3rem);
}

.page-hero p {
    margin-top: 1.1rem;
    max-width: 62ch;
    color: var(--muted);
    font-size: clamp(1rem, 1.5vw, 1.1rem);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: clamp(0.85rem, 2vw, 1.25rem);
    padding-bottom: clamp(3rem, 7vw, 5rem);
}

.card {
    padding: clamp(1.4rem, 3vw, 1.9rem);
    border-radius: var(--r-lg);
    background: var(--glass);
    -webkit-backdrop-filter: blur(26px) saturate(180%);
    backdrop-filter: blur(26px) saturate(180%);
    border: 1px solid var(--glass-edge);
    box-shadow: var(--glass-shadow);
    transition: transform 0.5s var(--spring), box-shadow 0.5s var(--ease);
}

@media (hover: hover) {
    .card:hover {
        transform: translateY(-5px);
        box-shadow: var(--glass-shadow-lg);
    }
}

.card h3 {
    margin-bottom: 0.55rem;
    font-size: 1.16rem;
}

.card p,
.card li {
    color: var(--muted);
    font-size: 0.955rem;
}

.card p + p { margin-top: 0.5rem; }
.card strong { color: var(--ink); font-weight: 600; }

.card ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.55rem;
}

.card ul li {
    display: flex;
    gap: 0.6rem;
}

.card ul li::before {
    content: "";
    flex: none;
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.16rem;
    border-radius: 50%;
    background: var(--green);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 88% no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 88% no-repeat;
}

.card a { color: var(--blue); font-weight: 500; }

/* Long-form legal / prose pages */
.prose {
    max-width: 46rem;
    margin: 0 auto;
    padding-bottom: clamp(3rem, 7vw, 5rem);
}

.prose h2 {
    margin: 2.2rem 0 0.75rem;
    font-size: clamp(1.3rem, 2.6vw, 1.7rem);
}

.prose h3 {
    margin: 1.6rem 0 0.5rem;
    font-size: 1.1rem;
}

.prose p,
.prose li {
    color: var(--muted);
    font-size: 0.985rem;
    line-height: 1.62;
}

.prose p { margin-bottom: 0.85rem; }

.prose ul,
.prose ol {
    margin: 0 0 1rem 1.1rem;
    display: grid;
    gap: 0.4rem;
}

.prose a { color: var(--blue); font-weight: 500; }
.prose strong { color: var(--ink); }

/* ---------- Team members ---------- */
.member {
    display: flex;
    flex-direction: column;
    padding: clamp(1.5rem, 3vw, 2rem);
    border-radius: var(--r-xl);
    background: var(--glass);
    -webkit-backdrop-filter: blur(26px) saturate(180%);
    backdrop-filter: blur(26px) saturate(180%);
    border: 1px solid var(--glass-edge);
    box-shadow: var(--glass-shadow);
    transition: transform 0.5s var(--spring), box-shadow 0.5s var(--ease);
}

@media (hover: hover) {
    .member:hover {
        transform: translateY(-6px);
        box-shadow: var(--glass-shadow-lg);
    }
}

.member img {
    width: 96px;
    height: 96px;
    margin-bottom: 1.1rem;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--glass-edge);
    box-shadow: var(--glass-shadow);
}

.member h3 {
    margin-bottom: 0.2rem;
    font-size: 1.25rem;
}

.member .role {
    margin-bottom: 0.85rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--blue);
}

.member p { color: var(--muted); font-size: 0.955rem; }

.member ul {
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.5rem;
}

.member ul li {
    display: flex;
    gap: 0.6rem;
    font-size: 0.915rem;
    color: var(--muted);
}

.member ul li::before {
    content: "";
    flex: none;
    width: 1.05rem;
    height: 1.05rem;
    margin-top: 0.16rem;
    border-radius: 50%;
    background: var(--green);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 88% no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 88% no-repeat;
}

.linkedin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 1.35rem;
    padding: 0.75rem 1.1rem;
    border-radius: 999px;
    background: var(--blue);
    color: #fff !important;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 2px 12px rgba(20, 80, 214, 0.3);
    transition: transform 0.32s var(--spring), background 0.25s var(--ease);
}

.linkedin-btn:hover { background: var(--blue-deep); transform: scale(1.03); }
.linkedin-btn:active { transform: scale(0.98); }

/* ---------- Contact / support blocks ---------- */
.contact-box,
.email-box {
    margin: 0 0 clamp(3rem, 6vw, 4.5rem);
    padding: clamp(1.6rem, 4vw, 2.6rem);
    border-radius: var(--r-xl);
    text-align: center;
    background: var(--glass-thick);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    backdrop-filter: blur(28px) saturate(190%);
    border: 1px solid var(--glass-edge);
    box-shadow: var(--glass-shadow-lg);
}

.email-box { margin: 1.4rem 0; padding: 1.4rem; }
.contact-box p, .email-box p { color: var(--muted); margin-top: 0.6rem; }

.email-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.8rem 1.4rem;
    border-radius: 999px;
    background: var(--blue);
    color: #fff !important;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 2px 14px rgba(20, 80, 214, 0.32);
    transition: transform 0.32s var(--spring), background 0.25s var(--ease);
}

.email-link:hover { background: var(--blue-deep); transform: scale(1.03); }
.email-link:active { transform: scale(0.98); }

/* ---------- Forms ---------- */
form { display: grid; gap: 1rem; margin-top: 1.1rem; }

form label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ink-2);
}

form input,
form textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: var(--r-sm);
    border: 1px solid var(--hairline-strong);
    background: var(--bg-elev);
    color: var(--ink);
    font: inherit;
    font-size: 1rem; /* >=16px so iOS does not zoom on focus */
    transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

form textarea { min-height: 9rem; resize: vertical; }

form input:focus,
form textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 18%, transparent);
}

.submit-btn {
    justify-self: start;
    padding: 0.9rem 1.6rem;
    border: 0;
    border-radius: 999px;
    background: var(--blue);
    color: #fff;
    font: inherit;
    font-size: 0.98rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 14px rgba(20, 80, 214, 0.32);
    transition: transform 0.32s var(--spring), background 0.25s var(--ease);
}

.submit-btn:hover { background: var(--blue-deep); transform: scale(1.03); }
.submit-btn:active { transform: scale(0.98); }

/* Contact page: constrain the form column so fields are not full-bleed. */
.form-wrap {
    max-width: 42rem;
    margin: 0 auto;
    padding-bottom: clamp(3rem, 7vw, 5rem);
}

.form-wrap .card h2 {
    margin-bottom: 0.4rem;
    font-size: clamp(1.3rem, 2.6vw, 1.6rem);
}

/* Legal pages open directly with an <h1>; give it room under the nav. */
.prose > h1:first-child {
    margin: clamp(2rem, 5vw, 3.5rem) 0 0.5rem;
    font-size: clamp(2rem, 5vw, 3.1rem);
}

/* ---------- Language picker ---------- */
:root {
    --caret: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a6780' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9.5l6 6 6-6'/%3E%3C/svg%3E");
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --caret: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23949eb0' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9.5l6 6 6-6'/%3E%3C/svg%3E");
    }
}

:root[data-theme="dark"] {
    --caret: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23949eb0' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9.5l6 6 6-6'/%3E%3C/svg%3E");
}

.lang-select {
    flex: none;
    appearance: none;
    -webkit-appearance: none;
    height: 36px;
    padding: 0 1.9rem 0 0.8rem;
    border: 1px solid var(--glass-edge);
    border-radius: 999px;
    background-color: var(--glass);
    background-image: var(--caret);
    background-repeat: no-repeat;
    background-position: right 0.65rem center;
    background-size: 13px;
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    color: var(--ink-2);
    font-family: inherit;
    font-size: 0.845rem;
    font-weight: 500;
    line-height: 34px;
    cursor: pointer;
    box-shadow: var(--glass-shadow);
    transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.lang-select:hover { color: var(--ink); border-color: var(--hairline-strong); }
.lang-select:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
/* The dropdown list itself is drawn by the OS — keep it readable in both themes. */
.lang-select option { background: var(--bg-elev); color: var(--ink); }

/* Full-width inside the mobile sheet, matching the sheet's link rows. */
.lang-select-sheet {
    display: block;
    width: 100%;
    height: 46px;
    line-height: 44px;
    margin-top: 0.5rem;
    border-radius: var(--r-sm);
    background-position: right 0.9rem center;
    font-size: 0.98rem;
}

@media (max-width: 1000px) {
    /* The navbar copy would crowd the brand; the sheet carries it instead. */
    .lang-select:not(.lang-select-sheet) { display: none; }
}

        /* Header CTA is the store badges themselves, Cal AI-style — no button. */
        .nav-badges {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            flex: none;
        }

        .nav-badges img { display: block; height: 32px; width: auto; }

        .nav-badges a { transition: opacity 0.25s var(--ease); }
        .nav-badges a:hover { opacity: 0.78; }

        @media (max-width: 1100px) { .nav-badges { display: none; } }
