/*
 * financetracker.net/: the product's landing page (home.jte, audit C3, 2026-11-21), in English, French, Romanian and
 * Polish. Mobile first, no CoreUI: the brand's colours of the sign-in pages (login_register.css), the theme that
 * theme-init.js puts on <html> (data-bs-theme) before the first paint. Every pair of text and background below reads
 * at 4.5:1 or more; the hero's white text sits on the darker half of the sign-in gradient in both themes.
 */
:root {
    /* The brand (2026-11-28, BRAND_ROADMAP.md; the designer's slide 04): paper and white in light mode, night and
     * #292126 in dark; the bar and the hero one mulberry surface with the ribbons, in both. */
    --home-bg: #F5F2ED;
    --home-alt-bg: #FFFFFF;
    --home-card-bg: #FFFFFF;
    --home-text: #292126;
    --home-muted: #685C64;
    --home-border: #E2DCDF;
    --home-link: #7C5D46;
    --home-link-hover: #624A37;
    --home-rule: #4B3444;
    --home-hero-start: #4B3444;
    --home-hero-end: #4B3444;
    --home-shadow: 0 2px 10px rgba(41, 33, 38, 0.08);
}

[data-bs-theme="dark"] {
    --home-bg: #1D181C;
    --home-alt-bg: #231D21;
    --home-card-bg: #292126;
    --home-text: #E6E1DE;
    --home-muted: #B3A8AF;
    --home-border: #392D35;
    --home-link: #C6A790;
    --home-link-hover: #D9C2B0;
    --home-rule: #C6A790;
    --home-hero-start: #4B3444;
    --home-hero-end: #4B3444;
    --home-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

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

body.home {
    margin: 0;
    background-color: var(--home-bg);
    color: var(--home-text);
    font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    font-size: 1rem;
    line-height: 1.55;
    overflow-wrap: break-word;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.home a {
    color: var(--home-link);
}

.home a:hover {
    color: var(--home-link-hover);
}

.home a:focus-visible {
    outline: 3px solid var(--home-link);
    outline-offset: 2px;
}

.home h1,
.home h2,
.home h3 {
    line-height: 1.25;
}

.home-wrap {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1rem;
}

/* The bar: the name, and the page in each language. */
.home-bar {
    background-color: var(--home-hero-start);
}

.home-bar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.25rem 1rem;
    min-height: 3.5rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.home .home-brand {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    line-height: 0;
    text-decoration: none;
}
.home .home-brand {
    color: #C6A790;
}

.home-languages {
    display: flex;
    flex-wrap: wrap;
    gap: 0 0.75rem;
}

.home .home-languages a {
    display: inline-block;
    padding: 0.375rem 0.125rem;
    color: rgba(245, 242, 237, 0.8);
    text-decoration: none;
}

.home .home-languages a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.home .home-languages a[aria-current="page"] {
    color: #C6A790;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.25em;
}
.home .home-bar a:focus-visible {
    outline-color: #C6A790;
}

/* The hero: white on the brand's gradient. */
.home-hero {
    background: var(--home-hero-start) url("/assets/brand/ribbons.svg") right bottom / cover no-repeat;
    color: #ffffff;
    padding: 2.5rem 0 2.75rem;
}

.home-badge {
    display: inline-block;
    margin: 0 0 1rem;
    padding: 0.25rem 0.75rem;
    border: 1px solid rgba(198, 167, 144, 0.8);
    border-radius: 999px;
    color: #C6A790;
    font-size: 0.875rem;
    font-weight: 600;
}

.home-hero h1 {
    margin: 0;
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.home-lead {
    max-width: 40rem;
    margin: 0.75rem 0 0;
    color: rgba(245, 242, 237, 0.85);
    font-size: 1.125rem;
}

.home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.5rem 0 1.25rem;
}

.home .home-button {
    display: inline-flex;
    flex: 1 1 10rem;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.625rem 1.5rem;
    border: 2px solid rgba(245, 242, 237, 0.9);
    border-radius: 50rem;
    color: #ffffff;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}

.home .home-button:hover {
    color: #ffffff;
    background-color: rgba(245, 242, 237, 0.08);
    text-decoration: none;
}

.home .home-button-primary {
    border-color: #C6A790;
    background-color: #C6A790;
    color: #292126;
}
.home .home-button-primary:hover {
    border-color: #B1927C;
    background-color: #B1927C;
    color: #292126;
}

.home .home-hero a:focus-visible {
    outline-color: #C6A790;
}

.home-trust {
    max-width: 40rem;
    margin: 0;
    color: rgba(245, 242, 237, 0.75);
    font-size: 0.95rem;
}

/* The sections. */
.home-section {
    padding: 2.5rem 0;
}

.home-section-alt {
    background-color: var(--home-alt-bg);
}

.home-section h2 {
    margin: 0 0 1.25rem;
    font-size: 1.5rem;
}

.home-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.home-card {
    padding: 1.25rem;
    border: 1px solid var(--home-border);
    border-radius: 0.75rem;
    background-color: var(--home-card-bg);
    box-shadow: var(--home-shadow);
}

.home-card h2 {
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
}

.home-card ul,
.home-section-alt ul {
    margin: 0;
    padding-left: 1.25rem;
}

.home-card li,
.home-section-alt li {
    margin: 0.375rem 0;
}

/* The screenshots (C3-14): as wide as their box, as tall as their width and height attributes make them, so that the
   page does not move when they arrive. The hero's below its text, the leads' under their titles. */
.home-shot {
    display: block;
    margin: 0 0 1rem;
}

.home-shot img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--home-border);
    border-radius: 0.5rem;
}

.home-hero .home-shot {
    margin: 2rem 0 0;
}

.home-hero .home-shot img {
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

/* Also in Finance Tracker: a list of short entries. */
.home-section-alt .home-features {
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-section-alt .home-features li {
    margin: 0;
    padding: 1rem 1.125rem;
    border: 1px solid var(--home-border);
    border-radius: 0.75rem;
    background-color: var(--home-card-bg);
}

.home-features h3 {
    margin: 0 0 0.375rem;
    font-size: 1.05rem;
}
.home-features h3::before {
    content: "";
    display: block;
    width: 2rem;
    height: 3px;
    margin-bottom: 0.75rem;
    background-color: var(--home-rule);
}

.home-features p {
    margin: 0;
    color: var(--home-muted);
}

/* Pricing. */
.home-plan h3 {
    margin: 0;
    font-size: 1.25rem;
}

.home-price {
    margin: 0.375rem 0 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.home-yearly {
    margin: 0.125rem 0 0;
    color: var(--home-muted);
}

.home-tagline {
    margin: 0.75rem 0;
    font-weight: 600;
}

.home-ai {
    margin: 0.75rem 0 0;
    padding-top: 0.75rem;
    border-top: 1px solid var(--home-border);
    color: var(--home-muted);
}

.home-note {
    max-width: 48rem;
    margin: 1rem 0 0;
    color: var(--home-muted);
    font-size: 0.95rem;
}

/* Security and privacy. */
.home-trust-strong {
    max-width: 48rem;
    margin: 0 0 0.75rem;
    font-size: 1.125rem;
    font-weight: 700;
}

/* Questions. */
.home-faq {
    max-width: 48rem;
}

.home-faq h3 {
    margin: 1.5rem 0 0.375rem;
    font-size: 1.05rem;
}

.home-faq h2 + h3 {
    margin-top: 0;
}

.home-faq p {
    margin: 0;
}

.home-footer {
    padding: 1.5rem 0 2rem;
    border-top: 1px solid var(--home-border);
    color: var(--home-muted);
    font-size: 0.95rem;
}

@media (min-width: 40rem) {
    .home-section-alt .home-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 48rem) {
    .home-wrap {
        padding: 0 1.5rem;
    }

    .home-hero {
        padding: 4rem 0 4.25rem;
    }

    .home-hero h1 {
        font-size: 3rem;
    }

    .home-lead {
        font-size: 1.25rem;
    }

    .home .home-button {
        flex: 0 0 auto;
    }

    .home-section {
        padding: 3.5rem 0;
    }

    .home-section h2 {
        font-size: 1.875rem;
    }

    .home-card h2 {
        font-size: 1.25rem;
    }
}

@media (min-width: 60rem) {
    .home-grid-3,
    .home-section-alt .home-features {
        grid-template-columns: repeat(3, 1fr);
    }
}
