/* Mac app promotional pages (BrewDock, ClawdBar). Same pastel colour-block
   style as the Don't Worry and Word Slip pages and the apps themselves:
   condensed uppercase headings, monospaced small print, rounded colour
   blocks with dark ink. Each page picks its hero colour with a modifier. */
.ma-page {
    --ink: #232428;
    --ink-soft: #3B3E58;
    --ground: #E9EFEA;
    --night: #26272C;
    --night-card: #33353B;
    --night-text: #C3C6CD;
    --peach: #F6C3B4;
    --butter: #F6E2A4;
    --periwinkle: #C3C7F6;
    --mint: #C2E6D6;
    --lilac: #DCD2F0;
    --coral: #EE9C86;
    --cream: #F2F1EE;
    background: var(--ground);
}

.ma-page main {
    color: var(--ink);
}

/* The site's global section style is for narrow pages; these bands are full width.
   :where() keeps this reset weak, so each band's own padding still applies. */
:where(.ma-page) section {
    max-width: none;
    padding: 0;
}

.ma-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

.ma-display {
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 0.92;
    letter-spacing: -0.005em;
}

.ma-mono {
    font-family: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

.ma-eyebrow {
    font-family: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

/* BrewDock's menu bar panel, framed like a floating Mac window */
.ma-panel {
    width: 100%;
    max-width: 340px;
    border-radius: 24px;
    background: var(--ground);
    box-shadow: 0 0 0 1px rgba(35, 36, 40, 0.1), 0 30px 60px rgba(35, 36, 40, 0.22);
    overflow: hidden;
}

.ma-panel img {
    display: block;
    width: 100%;
    height: auto;
}

/* Install commands */
.ma-install {
    background: var(--ink);
    color: var(--cream);
    border-radius: 24px;
    padding: 20px 22px 22px;
    max-width: 34em;
}

.ma-install-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.ma-install-head span {
    font-family: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--night-text);
}

.ma-copy {
    font-family: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 12px;
    font-weight: 500;
    color: var(--ink);
    background: var(--butter);
    border: 0;
    border-radius: 999px;
    padding: 6px 14px;
    cursor: pointer;
}

.ma-copy:hover,
.ma-copy:focus-visible {
    background: #fff;
}

.ma-install pre {
    margin: 0;
    font-family: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 14px;
    line-height: 1.75;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    background: none;
    padding: 0;
    color: var(--cream);
}

.ma-install pre .ma-prompt {
    color: var(--night-text);
    user-select: none;
}

.ma-install-note {
    margin-top: 14px;
    font-size: 12px;
    line-height: 1.6;
    color: var(--night-text);
}

.ma-install-note code {
    font-family: inherit;
    color: var(--cream);
}

.ma-pill-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--ink);
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    padding: 14px 22px;
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
    font-weight: 700;
    font-size: 20px;
    text-transform: uppercase;
    white-space: nowrap;
}

.ma-pill-link:hover,
.ma-pill-link:focus-visible {
    background: #000;
    color: #fff;
}

.ma-pill-link.light {
    background: rgba(255, 255, 255, 0.6);
    color: var(--ink);
}

.ma-pill-link.light:hover,
.ma-pill-link.light:focus-visible {
    background: #fff;
    color: var(--ink);
}

.ma-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

/* Hero: butter by default (BrewDock), peach for ClawdBar */
.ma-hero {
    background: var(--butter);
    padding: 96px 0 0;
    overflow: hidden;
}

.ma-hero.peach {
    background: var(--peach);
}

.ma-hero .ma-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 40px;
    align-items: end;
}

.ma-hero-copy {
    padding-bottom: 96px;
}

.ma-app-id {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.ma-app-id img {
    width: 64px;
    height: 64px;
    border-radius: 15px;
    box-shadow: 0 6px 16px rgba(35, 36, 40, 0.15);
}

.ma-app-id .ma-app-name {
    font-weight: 600;
    font-size: 17px;
}

.ma-hero h1 {
    font-size: clamp(56px, 7.4vw, 96px);
    margin-bottom: 24px;
}

.ma-hero .ma-lead {
    font-family: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink-soft);
    max-width: 30em;
    margin-bottom: 32px;
}

.ma-hero .ma-small {
    margin-top: 16px;
    font-size: 13px;
    color: var(--ink-soft);
}

.ma-hero-visual {
    display: flex;
    justify-content: center;
}

.ma-hero-visual .ma-panel {
    margin-bottom: -120px;
}

/* What it does */
.ma-how {
    padding: 200px 0 40px;
}

.ma-section-title {
    font-size: clamp(48px, 7vw, 80px);
    margin-bottom: 16px;
}

.ma-section-intro {
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink-soft);
    max-width: 34em;
    margin-bottom: 56px;
}

.ma-step {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
    border-radius: 40px;
    padding: 56px;
    margin-bottom: 28px;
    overflow: hidden;
}

.ma-step:nth-child(even) .ma-step-copy {
    order: 2;
}

.ma-step-number {
    font-size: 15px;
    font-weight: 500;
    color: var(--ink-soft);
    margin-bottom: 12px;
}

.ma-step h3 {
    font-size: clamp(44px, 5.5vw, 68px);
    margin-bottom: 18px;
}

.ma-step p {
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink-soft);
    max-width: 26em;
}

.ma-step .ma-panel {
    justify-self: center;
    max-width: 320px;
}

.ma-step.periwinkle { background: var(--periwinkle); }
.ma-step.butter { background: var(--butter); }
.ma-step.mint { background: var(--mint); }
.ma-step.lilac { background: var(--lilac); }
.ma-step.night { background: var(--night); color: #fff; }
.ma-step.night .ma-step-number,
.ma-step.night p { color: var(--night-text); }
.ma-step.night .ma-panel { background: #16171A; }

/* The little things */
.ma-extras {
    padding: 60px 0 40px;
}

.ma-extra-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 14px;
}

.ma-extra {
    border-radius: 28px;
    padding: 26px;
}

.ma-extra h3 {
    font-size: 28px;
    margin-bottom: 12px;
}

.ma-extra p {
    font-size: 13px;
    line-height: 1.6;
    color: var(--ink-soft);
}

.ma-extra kbd {
    font-family: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.65);
    border-radius: 6px;
    padding: 1px 6px;
}

/* Gallery */
.ma-gallery {
    padding: 60px 0 100px;
}

.ma-gallery-strip {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 24px;
    padding: 8px 24px 24px;
    max-width: 1080px;
    margin: 0 auto;
    align-items: flex-start;
}

.ma-gallery-strip figure {
    flex: 0 0 auto;
    width: 64vw;
    max-width: 300px;
    margin: 0;
    scroll-snap-align: start;
}

.ma-gallery-strip .ma-panel {
    max-width: none;
}

.ma-gallery-strip figcaption {
    font-family: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 13px;
    color: var(--ink-soft);
    margin-top: 14px;
    text-align: center;
}

/* On wider screens they sit side by side; on phones the row scrolls sideways */
@media (min-width: 861px) {
    .ma-gallery-strip {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 24px;
        overflow: visible;
    }

    .ma-gallery-strip figure {
        width: auto;
        max-width: none;
    }
}

/* Privacy */
.ma-privacy {
    background: var(--night);
    color: #fff;
    padding: 110px 0;
}

.ma-privacy .ma-eyebrow {
    color: var(--night-text);
}

.ma-privacy h2 {
    font-size: clamp(52px, 8vw, 96px);
    margin: 14px 0 48px;
}

.ma-privacy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.ma-privacy-item {
    background: var(--night-card);
    border-radius: 28px;
    padding: 28px;
}

.ma-privacy-item h3 {
    font-size: 28px;
    margin-bottom: 10px;
}

.ma-privacy-item p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--night-text);
}

.ma-privacy-item a {
    color: #fff;
}

.ma-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 6px;
    margin-bottom: 18px;
}

/* Final call to action */
.ma-cta {
    padding: 100px 0 40px;
}

.ma-cta-card {
    background: var(--mint);
    border-radius: 44px;
    padding: 56px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 40px;
    align-items: center;
}

.ma-cta-card img.ma-cta-mascot {
    width: 220px;
    height: auto;
}

.ma-cta-card h2 {
    font-size: clamp(52px, 7vw, 88px);
    margin-bottom: 16px;
}

.ma-cta-card p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink-soft);
    max-width: 32em;
}

.ma-cta-card .ma-small {
    margin-top: 18px;
    font-size: 13px;
}

.ma-cta-card .ma-small a {
    color: var(--ink);
}

.ma-page footer {
    margin-top: 60px;
}

@media (max-width: 860px) {
    .ma-hero .ma-inner,
    .ma-step,
    .ma-cta-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .ma-hero {
        padding-top: 72px;
    }

    .ma-hero-copy {
        padding-bottom: 24px;
    }

    .ma-step {
        padding: 36px 28px;
    }

    .ma-step:nth-child(even) .ma-step-copy {
        order: 0;
    }

    .ma-cta-card {
        padding: 36px 28px;
    }

    .ma-cta-card img.ma-cta-mascot {
        width: 160px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .ma-gallery-strip {
        scroll-behavior: smooth;
    }
}

.ma-hero .ma-small a {
    color: var(--ink);
}

/* Wide images inside a step (menu bar strip, notification) */
.ma-shot {
    justify-self: center;
    width: 100%;
    max-width: 420px;
}

.ma-shot img {
    display: block;
    width: 100%;
    height: auto;
}

.ma-disclaimer {
    font-size: 12px;
    line-height: 1.6;
    color: var(--ink-soft);
    max-width: 52em;
    margin: 28px auto 0;
    text-align: center;
}
