/* Base: reset, type, header, footer, buttons, cards, phone frame, light/dark swaps. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--mbr-bg); color: var(--mbr-text); font: 17px/1.6 var(--mbr-sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--mbr-accent); text-underline-offset: .15em; }
h1, h2, h3 { font-family: var(--mbr-serif); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--mbr-accent); outline-offset: 3px; border-radius: 6px; }
main:focus:not(:focus-visible) { outline: none; }

.mbr-wrap { max-width: var(--mbr-wrap); margin: 0 auto; padding: 0 var(--mbr-gutter); }
.mbr-skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--mbr-accent); color: var(--mbr-on-accent); padding: 10px 16px; border-radius: 10px; }
.mbr-skip:focus { top: 12px; }
.mbr-eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--mbr-sage); margin-bottom: .8em; }
.mbr-lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--mbr-muted); max-width: 36em; }
.mbr-icon { flex: none; vertical-align: -.2em; }

/* Light/dark swaps (images, icons). */
.mbr-only-dark { display: none !important; }
:root[data-theme="dark"] .mbr-only-dark { display: revert !important; }
:root[data-theme="dark"] .mbr-only-light { display: none !important; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .mbr-only-dark { display: revert !important; }
	:root:not([data-theme="light"]) .mbr-only-light { display: none !important; }
}

/* Header */
.mbr-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--mbr-bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--mbr-line); padding-top: env(safe-area-inset-top); }
.mbr-header__inner { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.mbr-brand { display: inline-flex; align-items: center; gap: 10px; font: 600 1.2rem var(--mbr-serif); color: var(--mbr-text); text-decoration: none; }
.mbr-brand img { width: 32px; height: 32px; border-radius: 8px; }
.mbr-nav { display: flex; gap: 24px; margin-left: auto; }
.mbr-nav a { color: var(--mbr-text); text-decoration: none; font-size: .95rem; font-weight: 500; }
.mbr-nav a:hover { color: var(--mbr-accent); }
.mbr-theme-toggle { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--mbr-line); background: var(--mbr-surface); color: var(--mbr-text); cursor: pointer; }
@media (max-width: 720px) { .mbr-nav { display: none; } .mbr-theme-toggle { margin-left: auto; } }

/* Buttons */
.mbr-store { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 22px 8px 18px; border-radius: 16px; background: var(--mbr-text); color: var(--mbr-bg); text-decoration: none; line-height: 1.1; font-weight: 600; font-size: 1.15rem; transition: transform .2s ease; }
.mbr-store small { display: block; font-size: .72rem; font-weight: 500; opacity: .8; }
.mbr-store:hover { transform: translateY(-2px); }
.mbr-store--soon { background: var(--mbr-surface); color: var(--mbr-text); border: 1px solid var(--mbr-line); }
.mbr-button { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border-radius: 999px; background: var(--mbr-accent); color: var(--mbr-on-accent); text-decoration: none; font-weight: 600; }
.mbr-link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; min-height: 44px; }

/* Cards */
.mbr-card { background: var(--mbr-surface); border: 1px solid var(--mbr-line); border-radius: var(--mbr-radius); padding: 28px; box-shadow: var(--mbr-shadow); }

/* Phone frame around a real screenshot (ratio of the captures: 640 × 1391). */
.mbr-phone { position: relative; width: 100%; max-width: 300px; padding: 10px; border-radius: 52px; background: #1d1a18; box-shadow: var(--mbr-phone-shadow), inset 0 0 0 2px #3a3532; }
.mbr-phone__screen { border-radius: 42px; overflow: hidden; aspect-ratio: 640 / 1391; background: var(--mbr-guide); }
.mbr-phone__screen img { width: 100%; height: 100%; object-fit: cover; }

/* Footer */
.mbr-footer { border-top: 1px solid var(--mbr-line); padding: 48px 0 calc(32px + env(safe-area-inset-bottom)); color: var(--mbr-muted); font-size: .92rem; }
.mbr-footer__inner { display: grid; gap: 24px; grid-template-columns: 1fr auto; }
.mbr-footer__brand p { margin: 8px 0 0; }
.mbr-footer__links { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: start; }
.mbr-footer__links a { color: var(--mbr-text); text-decoration: none; }
.mbr-footer__fine { grid-column: 1 / -1; font-size: .8rem; margin: 0; }
@media (max-width: 720px) { .mbr-footer__inner { grid-template-columns: 1fr; } }

/* Pages (legal, support) and 404 */
.mbr-page { padding-block: var(--mbr-section); }
.mbr-prose { max-width: 720px; margin: 0 auto; }
.mbr-prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.mbr-404 { text-align: center; padding-block: var(--mbr-section); display: grid; justify-items: center; }
.mbr-404 img { width: 240px; margin-bottom: 12px; }
.mbr-prose h3 { font-family: var(--mbr-sans); font-size: 1.05rem; margin: 1.4em 0 .3em; }
.mbr-prose ul { padding-left: 1.2em; }
.mbr-prose li { margin-bottom: .5em; }
.mbr-prose a { overflow-wrap: anywhere; }
