/* 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 steps: a pastel card in the app's colour with dark text. Only the
   commands sit on a dark panel, so they look like the Terminal they go into. */
.ma-install {
    background: var(--butter);
    color: var(--ink);
    border-radius: 28px;
    padding: 30px 28px 26px;
    max-width: 34em;
}

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

.ma-install-title {
    margin: 0 0 14px;
    font-size: 44px;
    color: var(--ink);
}

.ma-install-sub {
    margin: 0 0 22px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--ink-soft);
}

.ma-install-sub strong {
    color: var(--ink);
    font-weight: 600;
}

.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: 16px;
    font-size: 12px;
    line-height: 1.6;
    color: var(--ink-soft);
}

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

.ma-install-note a {
    color: var(--ink);
}

/* Numbered install steps, for people new to Terminal and Homebrew */
.ma-isteps {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: ma-istep;
    display: grid;
    gap: 18px;
}

.ma-isteps > li {
    counter-increment: ma-istep;
    position: relative;
    padding-left: 42px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--ink-soft);
}

.ma-isteps > li::before {
    content: counter(ma-istep);
    position: absolute;
    left: 0;
    top: -1px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--cream);
    font-size: 13px;
    font-weight: 600;
    line-height: 28px;
    text-align: center;
}

.ma-isteps p {
    margin: 0;
}

.ma-isteps p + p {
    margin-top: 10px;
}

.ma-isteps strong {
    color: var(--ink);
    font-weight: 600;
}

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

.ma-isteps kbd {
    font-family: inherit;
    font-size: 12px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(35, 36, 40, 0.25);
    border-bottom-width: 2px;
    border-radius: 6px;
    padding: 0 6px;
    white-space: nowrap;
}

.ma-cmd {
    margin-top: 12px;
    background: var(--ink);
    border-radius: 16px;
    padding: 14px 16px 16px;
}

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

.ma-cmd-head span {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--night-text);
}

.ma-install .ma-cmd pre {
    font-size: 13px;
    line-height: 1.7;
}

/* One command per line. A command too long for a phone wraps with its
   continuation indented, so it still reads as one command */
.ma-cmd .ma-line {
    display: block;
    padding-left: 2ch;
    text-indent: -2ch;
}

.ma-isteps .ma-step-button {
    display: inline-block;
    margin-top: 12px;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    background: var(--ink);
    border-radius: 999px;
    padding: 9px 18px;
    text-decoration: none;
}

.ma-isteps .ma-step-button:hover,
.ma-isteps .ma-step-button:focus-visible {
    background: var(--ink-soft);
}

/* What macOS will ask for, so the prompts aren't a surprise */
.ma-perms {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(35, 36, 40, 0.15);
    font-size: 13px;
    line-height: 1.6;
    color: var(--ink-soft);
}

.ma-perms-title {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink);
}

.ma-perms p {
    margin: 0 0 10px;
}

.ma-perms ul {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 8px;
}

.ma-perms strong {
    color: var(--ink);
    font-weight: 600;
}

.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;
    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: center;
}

.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;
}

/* What it does */
.ma-how {
    padding: 96px 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.peach { background: var(--peach); }
.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: 72px 0;
    }

    .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;
}

/* The install steps sit at the bottom, under the final call to action */
.ma-cta .ma-install {
    max-width: 44em;
    margin: 0 auto 32px;
    scroll-margin-top: 24px;
}

@media (max-width: 860px) {
    .ma-cta .ma-install {
        margin-bottom: 24px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

.ma-isteps .ma-step-tip {
    margin-top: 10px;
    font-size: 13px;
}
