/* scadbox.com: one stylesheet for every page. Light and dark follow the visitor's system. */

:root {
    --bg: #fbfbfd;
    --surface: #ffffff;
    --surface-2: #f2f2f5;
    --text: #1d1d1f;
    --muted: #6e6e73;
    --line: #d9d9de;
    --accent: #2f6fec;
    --accent-ink: #ffffff;
    --teal: #2b8a92;
    --code-bg: #f4f4f6;
    --ok: #1f9d55;
    --no: #b5b5ba;
    --radius: 14px;
    --shadow: 0 20px 50px rgba(20, 30, 60, 0.16), 0 2px 8px rgba(20, 30, 60, 0.08);
    --max: 1120px;
    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #111214;
        --surface: #1b1c1f;
        --surface-2: #232428;
        --text: #f2f2f4;
        --muted: #a1a1a8;
        --line: #33343a;
        --accent: #5b8ff9;
        --code-bg: #1f2024;
        --shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.4);
    }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code, pre, kbd { font: 0.88em/1.5 "SF Mono", ui-monospace, Menlo, monospace; }
code { background: var(--code-bg); padding: 0.1em 0.35em; border-radius: 5px; }
pre { background: var(--code-bg); padding: 16px 18px; border-radius: 10px; overflow-x: auto; }
pre code { background: none; padding: 0; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 0 0 16px; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin: 0 0 14px; }
h3 { font-size: 1.2rem; margin: 0 0 8px; }
p { margin: 0 0 14px; }
.muted { color: var(--muted); }
/* Side padding only: sections set their own space above. */
.wrap { max-width: var(--max); margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }

/* Header and footer */
.site-header {
    position: sticky; top: 0; z-index: 10;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; color: var(--text); }
.brand img { width: 28px; height: 28px; }
.brand:hover { text-decoration: none; }
.site-nav { display: flex; gap: 20px; margin-left: auto; font-size: 0.95rem; }
.site-nav a { color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--accent); }
.site-footer { border-top: 1px solid var(--line); margin-top: 96px; padding: 32px 0 48px; font-size: 0.9rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.site-footer a { color: var(--muted); }
@media (max-width: 720px) {
    .site-nav { gap: 14px; font-size: 0.9rem; }
    .site-nav .hide-small { display: none; }
}

/* Buttons */
.button {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 1rem;
    background: var(--accent); color: var(--accent-ink);
}
.button:hover { text-decoration: none; filter: brightness(1.06); }
.button.secondary { background: var(--surface-2); color: var(--text); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 24px 0 8px; }
.fine { font-size: 0.85rem; color: var(--muted); }

/* Hero */
.hero { padding: 72px 0 32px; text-align: center; }
.hero .lede { font-size: clamp(1.1rem, 2.2vw, 1.35rem); color: var(--muted); max-width: 760px; margin: 0 auto; }
.hero .actions { justify-content: center; }
.hero-shot { margin: 40px auto 0; max-width: 1180px; padding: 0 24px; }
.hero-shot + section { padding-top: 112px; }
.window {
    border-radius: 12px; overflow: hidden; box-shadow: var(--shadow);
    border: 1px solid var(--line); background: var(--surface);
}

/* Sections */
section { padding-top: 96px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; font-weight: 650; color: var(--teal); margin-bottom: 10px; }
.split { display: grid; grid-template-columns: 1fr 1.35fr; gap: 48px; align-items: center; }
.split.flip { grid-template-columns: 1.35fr 1fr; }
.split.flip .copy { order: 2; }
@media (max-width: 900px) {
    .split, .split.flip { grid-template-columns: 1fr; gap: 24px; }
    .split.flip .copy { order: 0; }
}
.copy ul { padding-left: 1.1em; margin: 0 0 14px; }
.copy li { margin: 4px 0; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card.example { padding: 0; overflow: hidden; }
.card.example img { aspect-ratio: 4 / 3; object-fit: cover; background: #f7f7f9; }
.card.example .body { padding: 16px 18px 18px; }

/* Comparison table: Claude alone vs with ScadBox */
.compare { width: 100%; border-collapse: collapse; font-size: 0.95rem; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.compare th, .compare td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare th { background: var(--surface-2); font-weight: 600; }
.compare td:nth-child(n+2), .compare th:nth-child(n+2) { text-align: center; width: 18%; }
.compare tr:last-child td { border-bottom: none; }
.yes { color: var(--ok); font-weight: 700; }
.no { color: var(--no); }
.partly { color: #c27c0e; font-weight: 600; }

/* Tools list */
.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px 28px; }
.tool { padding: 12px 0; border-bottom: 1px solid var(--line); }
.tool code { font-weight: 600; }
.tool p { margin: 4px 0 0; color: var(--muted); font-size: 0.95rem; }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 32px 0; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; }
.plan.pro { border: 2px solid var(--accent); }
.plan .price { font-size: 2.2rem; font-weight: 700; margin: 8px 0 2px; }
.plan .price small { font-size: 1rem; font-weight: 400; color: var(--muted); }
.plan .price-alt { margin: 0 0 6px; color: var(--muted); font-size: 0.95rem; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 0; }
.plan li { padding: 6px 0 6px 26px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }

/* Videos */
.video { position: relative; }
.video video { width: 100%; }

/* Articles (guides) */
.article { max-width: 760px; margin: 0 auto; padding: 56px 24px 0; }
.article h1 { font-size: clamp(2rem, 4.2vw, 2.8rem); }
.article h2 { font-size: 1.6rem; margin-top: 44px; }
.article h3 { margin-top: 28px; }
.article .answer { font-size: 1.15rem; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: 10px; padding: 16px 20px; margin: 20px 0 28px; }
.article figure { margin: 28px 0; }
.article figcaption { font-size: 0.88rem; color: var(--muted); margin-top: 8px; text-align: center; }
.article ol, .article ul { padding-left: 1.3em; }
.article li { margin: 6px 0; }
.breadcrumbs { font-size: 0.88rem; color: var(--muted); margin-bottom: 18px; }
.faq dt { font-weight: 650; margin-top: 18px; }
.faq dd { margin: 6px 0 0; color: var(--text); }
.related { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.updated { font-size: 0.88rem; color: var(--muted); }
.cta-box { margin-top: 44px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.cta-box img { width: 56px; height: 56px; }
.cta-box div { flex: 1; min-width: 220px; }

/* Home page: App Store badge, the two pillars, chapters and roomy feature blocks */
.store-badge { display: inline-block; line-height: 0; }
.store-badge img { height: 54px; width: auto; }
.store-badge .dark { display: none; }
@media (prefers-color-scheme: dark) {
    .store-badge .light { display: none; }
    .store-badge .dark { display: block; }
}
.hero .alt { font-size: 0.95rem; }

.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }
.pillar { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 36px 34px; }
.pillar h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.pillar .icon { font-size: 2rem; line-height: 1; margin-bottom: 14px; }
.pillar ul { list-style: none; padding: 0; margin: 18px 0 0; }
.pillar li { padding: 7px 0 7px 26px; position: relative; border-top: 1px solid var(--line); }
.pillar li:first-child { border-top: none; }
.pillar li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }
.pillar .more { margin-top: 18px; display: inline-block; font-weight: 600; }

.chapter { padding-top: 140px; text-align: center; }
.chapter h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 14px; }
.chapter .lede { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--muted); max-width: 760px; margin: 0 auto; }

.feature { padding-top: 112px; }
.feature .copy { max-width: 720px; margin: 0 auto 36px; text-align: center; }
.feature .copy h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 12px; }
.feature .copy p { font-size: 1.08rem; color: var(--muted); }
.feature .media { max-width: 1120px; margin: 0 auto; }
.feature .points { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin-top: 26px; color: var(--muted); font-size: 0.95rem; }
.feature .points span::before { content: "✓ "; color: var(--teal); font-weight: 700; }
.badge-pro { display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 1px 8px; vertical-align: middle; margin-left: 6px; }

.toolsets { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; text-align: left; max-width: 1060px; margin: 0 auto; }
@media (max-width: 760px) { .toolsets { grid-template-columns: 1fr; } }
.toolset { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.toolset h4 { margin: 0 0 6px; font-size: 1.08rem; }
.toolset p { margin: 0 0 10px; color: var(--muted); font-size: 0.95rem; }
.toolset .names { font: 0.82rem/1.7 "SF Mono", ui-monospace, Menlo, monospace; color: var(--text); }
.prompts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; text-align: left; }
.prompts blockquote { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; font-size: 1rem; }
.agent-split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; text-align: left; max-width: 1060px; margin: 0 auto; }
@media (max-width: 900px) { .agent-split { grid-template-columns: 1fr; } }

/* Home page: agent alone vs with ScadBox */
.matrix { max-width: 760px; margin: 0 auto; }
.matrix .compare th:nth-child(n+2), .matrix .compare td:nth-child(n+2) { width: 24%; white-space: nowrap; }
.matrix .compare { font-size: 1rem; }
.matrix .compare td, .matrix .compare th { padding: 12px 18px; }
.matrix .compare th:last-child, .matrix .compare td:last-child { background: color-mix(in srgb, var(--teal) 9%, transparent); }
.matrix .compare th:last-child { color: var(--teal); }
.matrix .compare .no { color: #c0392b; opacity: 0.55; }
.matrix .compare .yes { font-size: 1.1rem; }
