/* ===== Variables ===== */
:root {
    --mb-bg: #FAF6F0;
    --mb-text: #2C1A10;
    --mb-accent: #C0392B;
    --mb-muted: #7A6559;
    --mb-card: #F2EBE3;
    --mb-border: #E8DDD5;
    --mb-white: #FFFFFF;
    --font-serif: "Newsreader", Georgia, serif;
    --font-sans: system-ui, -apple-system, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--mb-bg);
    color: var(--mb-text);
    font-family: var(--font-sans);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
}

ul {
    list-style: none;
}

p {
    font-family: var(--font-serif);
    font-weight: 400;
    font-style: normal;
}

/* ===== Navigation ===== */
.mb-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 246, 240, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--mb-border);
    padding: 1rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mb-nav-logo {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--mb-text);
}

.mb-nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.mb-nav-links a {
    color: var(--mb-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.mb-nav-links a:hover {
    color: var(--mb-text);
}

/* ===== Shared button ===== */
.mb-btn {
    display: inline-flex;
    align-items: center;
    background: var(--mb-text);
    color: var(--mb-white) !important;
    padding: 0.55rem 1.2rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none !important;
    transition: opacity 0.2s;
}

.mb-btn:hover {
    opacity: 0.8;
}

/* ===== Hero ===== */
.mb-hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 5rem 0 0;
    overflow: hidden;
}

.mb-hero-text {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 3rem;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2.5rem 3.5rem;
    flex-wrap: wrap;
}

.mb-hero-copy {
    flex: 1;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mb-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mb-accent);
    background: rgba(192, 57, 43, 0.1);
    padding: 0.35rem 0.85rem;
    border-radius: 2rem;
    width: fit-content;
}

.mb-hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.8rem, 5.5vw, 4.2rem);
    font-weight: 600;
    line-height: 1.1;
    color: var(--mb-text);
}

.mb-hero h1 em {
    font-style: italic;
    color: var(--mb-accent);
}

.mb-hero-sub {
    font-size: 1.5rem;
    color: var(--mb-muted);
    line-height: 1.65;
    max-width: 38ch;
}

/* ===== App Store Badge ===== */
.mb-appstore-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    background: var(--mb-text);
    color: var(--mb-white);
    padding: 0.75rem 1.5rem;
    border-radius: 0.9rem;
    text-decoration: none;
    transition: opacity 0.2s;
    width: fit-content;
}

.mb-appstore-badge:hover {
    opacity: 0.85;
}

.mb-appstore-badge svg {
    flex-shrink: 0;
}

.mb-badge-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.mb-badge-text small {
    font-size: 0.65rem;
    opacity: 0.75;
    letter-spacing: 0.03em;
}

.mb-badge-text strong {
    font-size: 1.05rem;
}

.mb-appstore-badge-light {
    background: var(--mb-white);
    color: var(--mb-text);
}

.mb-appstore-badge-light:hover {
    opacity: 0.9;
}

/* ===== Hero Banner ===== */
.mb-hero-banner {
    position: relative;
    width: 100%;
    line-height: 0;
}

.mb-hero-banner img {
    width: 100%;
    height: auto;
    display: block;
    -webkit-mask-image: linear-gradient(to bottom, black 90%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 90%, transparent 100%);
}

/* ===== Features Intro ===== */
.mb-features-intro {
    text-align: center;
    max-width: 650px;
    margin: 2rem auto 0;
    padding: 5rem 2rem 3rem;
}

.mb-features-intro h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.9rem, 3.5vw, 2.75rem);
    font-weight: 600;
    line-height: 1.2;
    margin: 0.75rem 0 1rem;
    color: var(--mb-text);
}

.mb-features-intro p {
    color: var(--mb-muted);
    font-size: 1.5rem;
    line-height: 1.65;
}

/* ===== Feature Row ===== */
.mb-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 5rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 2.5rem;
}

.mb-feature-reverse {
    direction: rtl;
}

.mb-feature-reverse>* {
    direction: ltr;
}

.mb-feature-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mb-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mb-accent);
    background: rgba(192, 57, 43, 0.1);
    padding: 0.3rem 0.75rem;
    border-radius: 2rem;
    width: fit-content;
}

.mb-feature-text h3 {
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    font-weight: 600;
    line-height: 1.2;
    color: var(--mb-text);
}

.mb-feature-text p {
    color: var(--mb-muted);
    font-size: 1.5rem;
    line-height: 1.7;
    max-width: 42ch;
}

.mb-feature-mockup {
    display: flex;
    justify-content: center;
}

.mb-feature-mockup img {
    width: 100%;
    max-width: 285px;
    border-radius: 32px;
}

/* ===== Divider ===== */
.mb-divider {
    max-width: 1100px;
    margin: 0 auto;
    border: none;
    border-top: 1px solid var(--mb-border);
}

/* ===== CTA ===== */
.mb-cta {
    text-align: center;
    padding: 8rem 2rem;
    background: var(--mb-text);
    margin-top: 6rem;
}

.mb-cta h2 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    line-height: 1.2;
    color: var(--mb-white);
    max-width: 20ch;
    margin: 0 auto 1rem;
}

.mb-cta p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 1.05rem;
    line-height: 1.65;
    max-width: 46ch;
    margin: 0 auto 2.5rem;
}

.mb-cta .mb-appstore-badge {
    margin: 0 auto;
}

/* ===== Footer ===== */
.mb-footer {
    background: var(--mb-text);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: 1.75rem 2rem;
    text-align: center;
    font-size: 0.83rem;
    color: rgba(255, 255, 255, 0.4);
}

.mb-footer a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color 0.2s;
}

.mb-footer a:hover {
    color: rgba(255, 255, 255, 0.75);
}

/* ===== Legal pages ===== */
.mb-legal {
    max-width: 740px;
    margin: 0 auto;
    padding: 4rem 2rem 6rem;
}

.mb-legal-inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mb-legal h1 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--mb-text);
}

.mb-legal-meta {
    font-size: 0.875rem;
    color: var(--mb-muted);
    margin-top: -0.75rem;
}

.mb-legal h2 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--mb-text);
    margin-top: 0.5rem;
}

.mb-legal p,
.mb-legal li {
    font-size: 1rem;
    color: var(--mb-muted);
    line-height: 1.75;
}

.mb-legal ul {
    list-style: disc;
    padding-left: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mb-legal a {
    color: var(--mb-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ===== Responsive ===== */
@media (max-width: 820px) {
    .mb-hero {
        padding: 3rem 0 0;
    }

    .mb-hero-text {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        padding: 0 1.5rem 2.5rem;
    }

    .mb-feature,
    .mb-feature.mb-feature-reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: 2.5rem;
        padding: 3rem 1.5rem;
    }

    .mb-feature-reverse .mb-feature-mockup {
        order: -1;
    }

    .mb-nav-links li:not(:last-child) {
        display: none;
    }

    .mb-features-intro {
        padding: 3rem 1.5rem 2rem;
    }
}