/* maccrown.org — one stylesheet for every page. No web fonts, no scripts,
   no third-party requests: the system font is SF Pro on Apple devices. */

:root {
    --bg: #fbfbfd;
    --surface: #ffffff;
    --surface-2: #f2f2f5;
    --fg: #1d1d1f;
    --muted: #5f5f66;
    --line: #e2e2e7;
    --accent: #0a66d8;
    --accent-fg: #ffffff;
    --accent-soft: rgba(10, 102, 216, 0.1);
    --teal: #0f8f87;
    --code-bg: #16171a;
    --code-fg: #e5e5ea;
    --code-muted: #8e8e93;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 28px rgba(0, 0, 0, 0.06);
    --radius: 18px;
    --header-bg: rgba(251, 251, 253, 0.82);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #111113;
        --surface: #1c1c1f;
        --surface-2: #232327;
        --fg: #f5f5f7;
        --muted: #a1a1a8;
        --line: #2e2e33;
        --accent: #4c9dff;
        --accent-fg: #0b0b0d;
        --accent-soft: rgba(76, 157, 255, 0.14);
        --teal: #3dd6cb;
        --code-bg: #0b0b0d;
        --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 28px rgba(0, 0, 0, 0.35);
        --header-bg: rgba(17, 17, 19, 0.8);
    }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 2px; }
a:focus-visible, .btn:focus-visible, summary:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
    border-radius: 8px;
}

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; }

.skip {
    position: absolute; left: 12px; top: -48px; z-index: 20;
    background: var(--surface); color: var(--fg); padding: 8px 14px; border-radius: 8px;
}
.skip:focus { top: 12px; }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 10;
    background: var(--header-bg);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    backdrop-filter: saturate(180%) blur(18px);
    border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand {
    display: inline-flex; align-items: center; gap: 10px;
    color: var(--fg); text-decoration: none; font-weight: 600; font-size: 18px; letter-spacing: -0.01em;
}
.brand img { border-radius: 7px; }
.site-nav { display: flex; gap: 22px; margin-left: auto; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.site-nav a:hover { color: var(--fg); }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px; padding: 0 22px; border-radius: 999px;
    background: var(--accent); color: var(--accent-fg);
    font-size: 16px; font-weight: 600; text-decoration: none; white-space: nowrap;
    border: 1px solid transparent;
    transition: filter 0.15s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn-small { min-height: 34px; padding: 0 16px; font-size: 14px; }
.btn-secondary { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-secondary:hover { background: var(--accent-soft); filter: none; }

/* Hero */
.hero { padding: 88px 0 72px; text-align: center; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px;
    padding: 6px 14px; border-radius: 999px; background: var(--surface-2);
    color: var(--muted); font-size: 14px; font-weight: 500;
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.hero h1 {
    margin: 0 auto; max-width: 14ch;
    font-size: clamp(44px, 8vw, 84px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 700;
}
.hero-lede { max-width: 640px; margin: 24px auto 0; color: var(--muted); font-size: clamp(18px, 2.2vw, 21px); }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.fine { margin: 18px auto 0; max-width: 560px; color: var(--muted); font-size: 14px; }
.hero-art { margin: 56px auto 0; max-width: 1000px; }
.hero-art svg {
    width: 100%; height: auto; border-radius: 14px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28), 0 8px 24px rgba(0, 0, 0, 0.18);
}
.hero-art figcaption { margin-top: 12px; color: var(--muted); font-size: 12px; }

/* Workflow strip */
.workflow { padding: 24px 0 56px; }
.workflow h2 { font-size: clamp(24px, 3vw, 30px); letter-spacing: -0.02em; margin: 0 0 28px; }
.steps {
    list-style: none; counter-reset: step; margin: 0; padding: 0;
    display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 8px;
}
.steps li {
    counter-increment: step;
    display: inline-flex; align-items: center; gap: 10px;
    padding: 10px 16px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--line);
    font-size: 15px; font-weight: 500;
}
.steps li::before {
    content: counter(step);
    display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
    background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700;
}

/* Sections */
.section { padding: 88px 0; border-top: 1px solid var(--line); }
.kicker {
    margin: 0 0 10px; color: var(--accent); font-size: 14px; font-weight: 600;
    letter-spacing: 0.04em; text-transform: uppercase;
}
.section h2, .closing h2 {
    margin: 0; font-size: clamp(30px, 4.4vw, 48px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 700;
}
.section-lede { margin: 16px 0 0; max-width: 640px; color: var(--muted); font-size: 19px; }
.center .section-lede, .section-lede.center { margin-left: auto; margin-right: auto; }

.grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px; margin-top: 44px;
}
.card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px 24px; box-shadow: var(--shadow);
}
.card h3 { margin: 16px 0 8px; font-size: 18px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.icon {
    width: 40px; height: 40px; padding: 8px; border-radius: 11px;
    background: var(--accent-soft); stroke: var(--accent); fill: none;
    stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* Developers band */
.dev { background: var(--surface-2); }
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.split p { color: var(--muted); font-size: 18px; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; }
.ticks li { position: relative; padding-left: 28px; margin: 10px 0; font-size: 16px; }
.ticks li::before {
    content: ""; position: absolute; left: 2px; top: 6px; width: 14px; height: 8px;
    border-left: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal); transform: rotate(-45deg);
}
.code {
    margin: 0; padding: 26px 28px; border-radius: var(--radius);
    background: var(--code-bg); color: var(--code-fg);
    font: 14px/1.7 ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
    overflow-x: auto; box-shadow: var(--shadow);
}
.code .c { color: var(--code-muted); }

/* Requirements */
.table-wrap { margin-top: 32px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--line); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
thead th { color: var(--muted); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
tbody th { font-weight: 600; white-space: nowrap; }
.note { color: var(--muted); font-size: 15px; margin: 14px 0 0; }

/* Pricing */
.plans {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px; max-width: 820px; margin: 44px auto 0;
}
.plan {
    display: flex; flex-direction: column; gap: 6px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 32px 28px; box-shadow: var(--shadow);
}
.plan h3 { margin: 0; color: var(--muted); font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.plan > p { margin: 0; color: var(--muted); }
.plan > .price { margin: 4px 0 6px; color: var(--fg); font-size: 32px; font-weight: 700; letter-spacing: -0.02em; }
.plan .ticks { flex: 1; margin-bottom: 22px; }
.plan .btn { align-self: flex-start; }

/* FAQ */
.faq { margin-top: 32px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
    cursor: pointer; list-style: none; padding: 20px 36px 20px 0; position: relative;
    font-size: 18px; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
    color: var(--muted); font-size: 24px; font-weight: 400;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 20px; color: var(--muted); }

/* Closing band */
.closing { padding: 96px 0; border-top: 1px solid var(--line); }
.closing .btn { margin-top: 28px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 36px; font-size: 14px; color: var(--muted); }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.foot p { margin: 10px 0 0; }
.foot nav, .contact { display: flex; flex-direction: column; gap: 8px; }
.foot nav a, .contact a { color: var(--muted); text-decoration: none; }
.foot nav a:hover, .contact a:hover { color: var(--fg); }
.legal { margin-top: 32px; font-size: 12px; }

/* Document pages: privacy, support, credits, 404 */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 24px 88px; }
.doc h1 { margin: 0 0 8px; font-size: clamp(34px, 5vw, 46px); line-height: 1.1; letter-spacing: -0.03em; }
.doc h2 { margin: 40px 0 10px; font-size: 22px; letter-spacing: -0.01em; }
.doc h3 { margin: 26px 0 6px; font-size: 17px; }
.doc p, .doc ul, .doc ol { margin: 10px 0; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 4px 0; }
.doc .lede { color: var(--muted); font-size: 19px; margin: 12px 0 0; }
.doc .updated { color: var(--muted); font-size: 14px; margin: 0 0 28px; }
.doc code {
    font: 0.9em ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
    background: var(--surface-2); padding: 2px 6px; border-radius: 5px; word-break: break-word;
}
.doc .table-wrap { margin-top: 18px; }
.doc table { font-size: 15px; }
.doc td a { word-break: break-all; }

@media (max-width: 860px) {
    .site-nav { display: none; }
    .bar { justify-content: space-between; }
    .split { grid-template-columns: 1fr; gap: 32px; }
    .foot { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .wrap { padding: 0 16px; }
    .doc { padding: 40px 16px 72px; }
    .hero { padding: 56px 0 48px; }
    .section { padding: 64px 0; }
    .cta-row .btn { width: 100%; }
    .code { padding: 20px; font-size: 12.5px; }
    th, td { padding: 12px 14px; }
}
