/* =========================================================
   CheckEngine - info / landing page
   Base palette: accent #fdae4b on dark (#0f141c)
   ========================================================= */

:root {
    --ce-accent: #fdae4b;
    --ce-accent-soft: #ffc978;
    --ce-accent-deep: #e8912a;
    --ce-dark: #0f141c;
    --ce-card: rgba(20, 26, 36, 0.72);
    --ce-border: rgba(253, 174, 75, 0.18);
    --ce-text-muted: #a9b3c1;

    /* The two Gemini-powered features (photo recognition, AI diagnostics) get their
       own accent so they read as "a different kind of feature" against the amber
       brand colour used everywhere else. */
    --ce-accent-ai: #a78bfa;
    --ce-accent-ai-soft: rgba(167, 139, 250, .14);
    --ce-accent-ai-border: rgba(167, 139, 250, .35);

    /* Matches the blue "Мої статки" badge in the app itself (see design.md,
       Dark colour scheme) - used sparingly, only where the real screen is blue too. */
    --ce-accent-blue: #38bdf8;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

body {
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    overflow-y: auto;
    -webkit-font-smoothing: antialiased;
}

/* Dim the background image so text stays readable */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background: linear-gradient(180deg, rgba(10, 14, 20, 0.86) 0%, rgba(10, 14, 20, 0.92) 45%, rgba(10, 14, 20, 0.97) 100%);
    pointer-events: none;
}

/* Particle canvas: sits under the content and never intercepts clicks.
   (the z-[-1] class in the markup is Tailwind v3 syntax, absent from this v2 build) */
#background {
    z-index: -1;
    pointer-events: none;
}

/* ---------- Shared utilities ---------- */

.info-general-color {
    color: var(--ce-accent);
}

.info-background-color {
    background-color: var(--ce-accent);
    color: #1a202c;
    cursor: pointer;
    transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.info-background-color:hover {
    background-color: var(--ce-accent-soft);
    color: #1a202c;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(253, 174, 75, .28);
}

.info-go-button {
    position: relative;
    z-index: 5;
    display: inline-block;
}

.info-pd-8rem {
    padding-top: 8rem;
}

.info-gradient-text {
    background: linear-gradient(100deg, var(--ce-accent) 0%, var(--ce-accent-soft) 50%, #ffe3b4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.info-section {
    position: relative;
    z-index: 2;
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
}

.info-eyebrow {
    display: inline-block;
    font-size: .75rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--ce-accent);
    border: 1px solid var(--ce-border);
    border-radius: 999px;
    padding: .35rem .9rem;
    margin-bottom: 1rem;
    background: rgba(253, 174, 75, .07);
}

.info-lead {
    color: var(--ce-text-muted);
    max-width: 46rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* ---------- Navigation ---------- */

.info-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(12, 17, 24, .72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.info-nav a.info-nav-link {
    color: #d7dde5;
    font-size: .95rem;
    padding: .35rem .2rem;
    position: relative;
    transition: color .2s ease;
}

.info-nav a.info-nav-link:hover {
    color: var(--ce-accent);
}

.info-nav a.info-nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    height: 2px;
    width: 0;
    background: var(--ce-accent);
    transition: width .25s ease;
}

.info-nav a.info-nav-link:hover::after {
    width: 100%;
}

.info-logo {
    height: 2.25rem;
    width: auto;
}

.info-burger {
    display: none;
    background: none;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: .6rem;
    padding: .45rem .6rem;
    cursor: pointer;
    color: #fff;
}

.info-mobile-menu {
    display: none;
    flex-direction: column;
    gap: .35rem;
    padding: .75rem 1.25rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, .06);
}

.info-mobile-menu.is-open {
    display: flex;
}

.info-mobile-menu a {
    color: #d7dde5;
    padding: .6rem .25rem;
    border-bottom: 1px solid rgba(255, 255, 255, .04);
}

/* ---------- Hero ---------- */

.info-hero-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .6rem;
    margin-top: 2.25rem;
}

.info-chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .85rem;
    color: #e4e9ef;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 999px;
    padding: .45rem 1rem;
}

.info-chip svg {
    width: 1rem;
    height: 1rem;
    color: var(--ce-accent);
}

.info-btn-ghost {
    display: inline-block;
    border: 1px solid rgba(253, 174, 75, .5);
    color: var(--ce-accent);
    border-radius: 999px;
    padding: .75rem 1.5rem;
    font-weight: 600;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
    position: relative;
    z-index: 5;
}

.info-btn-ghost:hover {
    background: rgba(253, 174, 75, .12);
    transform: translateY(-2px);
}

/* ---------- Cards ---------- */

.info-card {
    background: var(--ce-card);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 1.25rem;
    padding: 1.75rem;
    height: 100%;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.info-card:hover {
    transform: translateY(-4px);
    border-color: var(--ce-border);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}

.info-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: .5rem;
}

.info-card p {
    color: var(--ce-text-muted);
    font-size: .92rem;
    line-height: 1.65;
}

.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: .85rem;
    background: rgba(253, 174, 75, .12);
    border: 1px solid var(--ce-border);
    margin-bottom: 1rem;
}

.info-icon svg {
    width: 1.4rem;
    height: 1.4rem;
    color: var(--ce-accent);
}

/* ---------- AI accent (photo recognition, diagnostics) ---------- */

.info-icon-ai {
    background: var(--ce-accent-ai-soft);
    border-color: var(--ce-accent-ai-border);
}

.info-icon-ai svg {
    color: var(--ce-accent-ai);
}

.info-eyebrow-ai {
    color: var(--ce-accent-ai);
    border-color: var(--ce-accent-ai-border);
    background: var(--ce-accent-ai-soft);
}

.info-badge-ai {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--ce-accent-ai);
    background: var(--ce-accent-ai-soft);
    border: 1px solid var(--ce-accent-ai-border);
    border-radius: 999px;
    padding: .2rem .6rem;
    margin-bottom: .75rem;
}

.info-text-blue {
    color: var(--ce-accent-blue);
}

/* ---------- How it works ---------- */

.info-screen {
    width: 100%;
    border-radius: 1.25rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 20px 45px rgba(0, 0, 0, .45);
    transition: transform .3s ease;
}

.info-screen:hover {
    transform: scale(1.02);
}

.info-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: var(--ce-accent);
    color: #1a202c;
    font-weight: 700;
    font-size: .9rem;
    margin-bottom: .35rem;
}

/* ---------- Benefit list ---------- */

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

.info-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: .75rem;
    color: var(--ce-text-muted);
    line-height: 1.6;
}

.info-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .35rem;
    width: 1rem;
    height: 1rem;
    border-radius: 999px;
    background: rgba(253, 174, 75, .15);
    border: 1px solid var(--ce-accent);
}

.info-list li::after {
    content: "";
    position: absolute;
    left: .3rem;
    top: .6rem;
    width: .35rem;
    height: .18rem;
    border-left: 2px solid var(--ce-accent);
    border-bottom: 2px solid var(--ce-accent);
    transform: rotate(-45deg);
}

/* ---------- Reviews ---------- */

.info-review {
    margin: 1rem;
    background: var(--ce-card);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 1.25rem;
    padding: 1.75rem;
    max-width: 22rem;
    text-align: left;
    position: relative;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.info-review::before {
    content: "\201C";
    position: absolute;
    top: .25rem;
    right: 1.25rem;
    font-size: 4rem;
    line-height: 1;
    color: rgba(253, 174, 75, .22);
}

.info-review p:first-of-type {
    line-height: 1.65;
    margin-bottom: 1rem;
}

.info-review .info-review-author {
    color: var(--ce-accent);
    font-weight: 600;
}

.info-stars {
    color: var(--ce-accent);
    letter-spacing: .15em;
    font-size: .9rem;
    margin-bottom: .75rem;
}

/* ---------- FAQ ---------- */

.info-faq {
    background: var(--ce-card);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 1rem;
    margin-bottom: .75rem;
    overflow: hidden;
}

.info-faq summary {
    cursor: pointer;
    padding: 1.15rem 1.5rem;
    font-weight: 600;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.info-faq summary::-webkit-details-marker {
    display: none;
}

.info-faq summary::after {
    content: "+";
    color: var(--ce-accent);
    font-size: 1.4rem;
    line-height: 1;
    transition: transform .2s ease;
}

.info-faq[open] summary::after {
    transform: rotate(45deg);
}

.info-faq .info-faq-body {
    padding: 0 1.5rem 1.25rem;
    color: var(--ce-text-muted);
    line-height: 1.7;
    font-size: .95rem;
}

/* ---------- Final call to action ---------- */

.info-cta {
    background: linear-gradient(135deg, rgba(253, 174, 75, .16) 0%, rgba(20, 26, 36, .8) 60%);
    border: 1px solid var(--ce-border);
    border-radius: 1.5rem;
    padding: 3rem 1.5rem;
    text-align: center;
}

/* ---------- Footer ---------- */

.info-footer {
    position: relative;
    z-index: 2;
    background: rgba(12, 17, 24, .85);
    border-top: 1px solid rgba(255, 255, 255, .06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.info-footer a {
    color: var(--ce-text-muted);
    transition: color .2s ease;
}

.info-footer a:hover {
    color: var(--ce-accent);
}

/* ---------- Scroll reveal ---------- */

.info-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}

.info-reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .info-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ---------- Responsive ---------- */

@media (max-width: 768px) {
    .info-pd-8rem {
        padding-top: 6.5rem;
    }

    .info-burger {
        display: inline-flex;
    }

    .info-nav-links {
        display: none;
    }

    .info-section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .info-review {
        max-width: 100%;
        margin: .5rem 0;
    }
}

/* ---------- Language switcher ---------- */

/*
 * UK | EN in the nav and in the mobile menu.
 *
 * Styled here rather than with Tailwind utilities because landing.css is a
 * hand-curated subset containing only the classes this page already used - a
 * utility that is not in it renders nothing, silently, with no build step to
 * catch the gap.
 *
 * Both are real links to the other language's URL, so the switcher doubles as
 * the crawlable path between the two pages.
 */
.info-lang {
    display: inline-flex;
    align-items: center;
    gap: .15rem;
    padding: .15rem;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
}

.info-lang a.info-lang-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* 44px tall targets on a phone; the pill itself stays compact. */
    min-width: 2.5rem;
    padding: .3rem .55rem;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .04em;
    color: #98a2b3;
    border-radius: 999px;
    transition: color .2s ease, background-color .2s ease;
}

.info-lang a.info-lang-link:hover {
    color: var(--ce-accent);
}

.info-lang a.info-lang-active {
    color: #10151d;
    background-color: var(--ce-accent);
}

.info-mobile-menu .info-lang {
    align-self: flex-start;
    margin: .35rem 0;
}
