:root {
    --bg: #fbf4e8;
    --surface: #fffaf2;
    --surface-strong: #ffffff;
    --text: #2f241d;
    --muted: #6d5a4a;
    --line: rgba(47, 36, 29, 0.12);
    --accent: #d7653c;
    --accent-dark: #b14924;
    --gold: #efc66d;
    --mint: #dcedd7;
    --rose: #f7ddd6;
    --sand: #f2e3c8;
    --shadow: 0 24px 60px rgba(92, 62, 36, 0.14);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --container: 1320px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(239, 198, 109, 0.32), transparent 30%),
        linear-gradient(180deg, #fef7ed 0%, #fbf4e8 50%, #f7efe2 100%);
}

.landing-page {
    min-height: 100vh;
    min-height: 100dvh;
}

.site-header,
.section-shell {
    width: min(calc(100% - 32px), var(--container));
    margin: 0 auto;
}

.site-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 28px 0 12px;
}

.header-actions,
.app-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.66);
}

.language-switcher button {
    min-width: 38px;
    min-height: 38px;
    padding: 0 6px;
    border: 0;
    border-radius: 999px;
    color: var(--muted);
    background: transparent;
    font: inherit;
    font-size: 0.76rem;
    font-weight: 800;
    cursor: pointer;
}

.language-switcher-label {
    padding: 0 8px 0 6px;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
}

.language-switcher button.is-active {
    color: #fff;
    background: var(--accent);
}

.language-chooser {
    position: fixed;
    z-index: 20;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(47, 36, 29, 0.38);
    backdrop-filter: blur(7px);
}

.language-chooser-card {
    width: min(100%, 410px);
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-xl);
    background: var(--surface-strong);
    box-shadow: var(--shadow);
    text-align: center;
}

.language-chooser-brand,
.language-chooser-card h1,
.language-chooser-card p {
    margin: 0;
}

.language-chooser-brand {
    color: var(--accent-dark);
    font-weight: 900;
}

.language-chooser-card h1 {
    margin-top: 12px;
    font-size: 2rem;
}

.language-chooser-card h1 + p {
    margin-top: 12px;
}

.language-chooser-card p {
    color: var(--muted);
}

.language-chooser-options {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

.language-chooser-options button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 60px;
    border: 1px solid var(--line);
    border-radius: 18px;
    color: var(--text);
    background: var(--surface);
    font: inherit;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
}

.language-chooser-options button:hover,
.language-chooser-options button:focus-visible {
    border-color: var(--accent);
    outline: 2px solid rgba(215, 101, 60, 0.24);
    outline-offset: 2px;
}

.brand-name,
.product-badge,
.brand-claim,
.eyebrow,
.section-tag,
.hero-note,
.lead,
.story-end,
.story-points p,
.quote-stack p,
.debt-list p,
.pricing-panel p {
    margin: 0;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-claim,
.eyebrow,
.section-tag,
.hero-note {
    color: var(--muted);
}

.brand-claim {
    margin-top: 4px;
    font-size: 0.95rem;
}

.product-badge {
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--line);
    font-weight: 700;
}

.hero,
.story-grid,
.pricing-panel {
    margin-top: 24px;
    padding: 34px;
    border-radius: var(--radius-xl);
    background: rgba(255, 250, 242, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.hero,
.story-grid {
    display: grid;
    gap: 34px;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
}

.hero h1,
.story-copy h2,
.pricing-panel h2 {
    margin: 0;
    line-height: 1.05;
}

.hero h1 {
    font-size: clamp(3.2rem, 6vw, 6rem);
    margin-top: 14px;
}

.lead {
    margin-top: 18px;
    max-width: 34ch;
    font-size: 1.28rem;
    line-height: 1.55;
}

.hero-actions {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 22px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.button-primary {
    background: var(--accent);
    color: #fff;
}

.button-secondary {
    background: #fff;
    color: var(--text);
    border: 1px solid var(--line);
}

.scroll-top-button {
    position: fixed;
    z-index: 10;
    right: 24px;
    bottom: 24px;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 999px;
    color: #fff;
    background: var(--accent);
    box-shadow: 0 12px 24px rgba(92, 62, 36, 0.2);
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
}

.scroll-top-button:hover,
.scroll-top-button:focus-visible {
    background: var(--accent-dark);
    outline: 2px solid rgba(215, 101, 60, 0.3);
    outline-offset: 3px;
}

.illustration-card {
    min-height: 400px;
    border-radius: var(--radius-lg);
    background: linear-gradient(160deg, #fff9f0, #f6e9d8);
    border: 1px solid rgba(47, 36, 29, 0.08);
    overflow: hidden;
    position: relative;
}

.tone-sand {
    background: linear-gradient(160deg, #fff5e8, #f2e3c8);
}

.tone-rose {
    background: linear-gradient(160deg, #fff7f4, #f7ddd6);
}

.tone-mint {
    background: linear-gradient(160deg, #f3fbf1, #dcedd7);
}

.illustration-placeholder {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    text-align: center;
    color: var(--muted);
    font-weight: 700;
    background:
        radial-gradient(circle at top, rgba(215, 101, 60, 0.14), transparent 30%),
        repeating-linear-gradient(
            135deg,
            rgba(47, 36, 29, 0.03),
            rgba(47, 36, 29, 0.03) 12px,
            transparent 12px,
            transparent 24px
        );
}

.illustration-image {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quote-stack,
.story-points,
.debt-list,
.mini-kpis {
    margin-top: 18px;
    display: grid;
    gap: 10px;
}

.quote-stack p,
.debt-list p,
.mini-kpis div {
    padding: 16px 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--line);
}

.story-copy h2 {
    font-size: clamp(2rem, 3vw, 3rem);
}

.story-copy,
.hero-copy {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.story-end {
    margin-top: 18px;
    font-weight: 700;
    font-size: 1.08rem;
}

.reverse {
    grid-template-columns: 0.9fr 1.1fr;
}

.pricing-panel {
    margin-bottom: 32px;
    text-align: center;
}

.pricing-panel h2 {
    margin-top: 10px;
    font-size: clamp(1.8rem, 3vw, 3rem);
}

.pricing-free {
    margin-top: 10px;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--accent-dark);
}

@media (min-width: 1180px) {
    .hero {
        padding: 40px;
    }

    .hero-actions {
        margin-top: 30px;
    }

    .illustration-card {
        min-height: 440px;
    }
}

@media (min-width: 1024px) {
    .site-header,
    .hero.section-shell {
        width: min(calc(100% - 48px), 1240px);
    }

    .site-header {
        padding: 20px 0 8px;
    }

    .header-actions {
        gap: 10px;
    }

    .language-switcher {
        padding: 3px;
    }

    .language-switcher button {
        min-width: 34px;
        min-height: 34px;
    }

    .language-switcher-label {
        padding-right: 6px;
        font-size: 0.72rem;
    }

    .hero {
        grid-template-columns: minmax(0, 1.9fr) minmax(360px, 0.9fr);
        gap: 28px;
        margin-top: 16px;
        padding: 28px;
    }

    .hero h1 {
        margin-top: 10px;
        font-size: clamp(3rem, 4.4vw, 4rem);
        line-height: 1.02;
    }

    .hero .lead {
        max-width: 46ch;
        margin-top: 14px;
        font-size: 1.12rem;
        line-height: 1.45;
    }

    .hero-actions {
        gap: 10px;
        margin-top: 18px;
    }

    .hero .illustration-card {
        min-height: clamp(320px, 27vw, 360px);
    }

    .hero .illustration-image {
        object-position: center;
    }

    .story-grid.section-shell,
    .pricing-panel.section-shell {
        width: min(calc(100% - 48px), 1240px);
    }

    .story-grid {
        grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
        gap: 28px;
        margin-top: 18px;
        padding: 28px;
    }

    .story-grid.reverse {
        grid-template-columns: minmax(360px, 0.8fr) minmax(0, 1.2fr);
    }

    .story-grid .illustration-card {
        min-height: clamp(320px, 25vw, 360px);
    }

    .story-copy h2 {
        font-size: clamp(2.2rem, 2.7vw, 2.65rem);
        line-height: 1.06;
    }

    .quote-stack,
    .story-points,
    .debt-list,
    .mini-kpis {
        margin-top: 14px;
        gap: 8px;
    }

    .quote-stack p,
    .debt-list p,
    .mini-kpis div {
        padding: 13px 16px;
    }

    .story-end {
        margin-top: 14px;
        font-size: 1rem;
    }

    .pricing-panel {
        margin-top: 18px;
        padding: 26px 28px;
    }

    .pricing-panel h2 {
        font-size: clamp(1.8rem, 2.5vw, 2.5rem);
    }
}

@media (max-width: 860px) {
    .hero,
    .story-grid,
    .reverse {
        grid-template-columns: 1fr;
    }

    .site-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .header-actions {
        width: 100%;
        justify-content: space-between;
    }

}

@media (max-width: 540px) {
    .site-header,
    .section-shell {
        width: min(calc(100% - 20px), var(--container));
    }

    .hero,
    .story-grid,
    .pricing-panel {
        padding: 22px 18px;
        border-radius: 24px;
    }

    .hero h1 {
        font-size: clamp(2.25rem, 11vw, 3.4rem);
    }

    .button {
        width: 100%;
    }

    .hero-actions {
        align-items: stretch;
    }

    .illustration-card,
    .illustration-placeholder {
        min-height: 280px;
    }

    .scroll-top-button {
        right: 14px;
        bottom: 14px;
        width: 44px;
        height: 44px;
    }
}
