:root {
    color-scheme: light;
    --ink: #111827;
    --muted: #5b6472;
    --line: #d8dedc;
    --paper: #f7f8f5;
    --panel: #ffffff;
    --teal: #0f766e;
    --teal-dark: #0a4f49;
    --yellow: #facc15;
    --orange: #f97316;
    --blue: #2563eb;
    --red: #dc2626;
}

* {
    box-sizing: border-box;
}

body {
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: 0;
}

a {
    color: inherit;
}

.site-header {
    align-items: center;
    background: rgba(247, 248, 245, 0.92);
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr auto auto;
    min-height: 72px;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.brand {
    align-items: center;
    display: inline-flex;
    font-weight: 750;
    gap: 10px;
    text-decoration: none;
}

.brand img {
    height: 34px;
    width: 34px;
}

nav {
    display: flex;
    gap: 18px;
}

nav a,
.header-action,
footer a {
    color: var(--muted);
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
}

.header-action {
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    padding: 9px 13px;
}

.hero {
    align-items: center;
    display: grid;
    gap: 42px;
    grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
    margin: 0 auto;
    max-width: 1180px;
    min-height: calc(100vh - 72px);
    padding: 54px 28px 72px;
}

.eyebrow {
    color: var(--teal);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    margin: 0 0 10px;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    font-size: clamp(42px, 6vw, 68px);
    line-height: 0.98;
    margin-bottom: 20px;
    max-width: 820px;
}

h2 {
    font-size: clamp(32px, 4.4vw, 54px);
    line-height: 1.02;
    margin-bottom: 16px;
}

h3 {
    font-size: 21px;
    margin-bottom: 8px;
}

.hero-text,
.split-section p,
.pilot p,
.feature-grid p {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.55;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.primary-action,
.secondary-action {
    border-radius: 8px;
    display: inline-flex;
    font-weight: 800;
    justify-content: center;
    min-height: 46px;
    padding: 12px 16px;
    text-decoration: none;
}

.primary-action {
    background: var(--teal);
    color: #fff;
}

.secondary-action {
    border: 1px solid var(--line);
    color: var(--ink);
}

.ops-board {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(17, 24, 39, 0.12);
    padding: 18px;
}

.board-toolbar,
.receipt-strip {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.board-toolbar {
    border-bottom: 1px solid var(--line);
    margin-bottom: 14px;
    padding-bottom: 14px;
}

.board-toolbar span,
.receipt-strip span,
.kanban span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.kanban {
    display: grid;
    gap: 12px;
}

.kanban article,
.feature-grid article,
.automation-tree,
.steps li {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.kanban article {
    border-left: 7px solid var(--blue);
    padding: 16px;
}

.kanban article.warning {
    border-left-color: var(--orange);
}

.kanban article.billing {
    border-left-color: var(--teal);
}

.kanban strong,
.kanban small {
    display: block;
}

.kanban strong {
    font-size: 22px;
    margin: 6px 0;
}

.kanban small {
    color: var(--muted);
    font-size: 14px;
}

.receipt-strip {
    background: #ecfdf5;
    border-radius: 8px;
    gap: 12px;
    margin-top: 14px;
    padding: 14px;
}

.receipt-strip div {
    display: grid;
    gap: 3px;
}

.section,
.split-section,
.pilot {
    margin: 0 auto;
    max-width: 1180px;
    padding: 76px 28px;
}

.section.compact {
    padding-top: 34px;
}

.section-head {
    max-width: 760px;
}

.feature-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 28px;
}

.feature-grid article {
    padding: 22px;
}

.feature-grid img {
    height: 52px;
    margin-bottom: 20px;
    width: 52px;
}

.split-section {
    align-items: center;
    display: grid;
    gap: 28px;
    grid-template-columns: 0.86fr 1.14fr;
}

.automation-tree {
    display: grid;
    gap: 14px;
    padding: 20px;
}

.branch {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.node {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-weight: 800;
    min-height: 54px;
    padding: 15px;
}

.node.start {
    background: #0f766e;
    color: #fff;
}

.node.success {
    border-color: #86efac;
}

.node.warning {
    border-color: #fdba74;
}

.node.text {
    border-color: #93c5fd;
}

.node.task {
    border-color: #fde68a;
}

.steps {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
}

.steps li {
    align-items: center;
    display: flex;
    font-size: 18px;
    font-weight: 750;
    gap: 12px;
    padding: 16px;
}

.steps span {
    align-items: center;
    background: var(--yellow);
    border-radius: 999px;
    display: inline-flex;
    flex: 0 0 34px;
    font-size: 15px;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.pilot {
    align-items: center;
    background: var(--teal-dark);
    color: #fff;
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr auto;
    max-width: none;
    padding-left: max(28px, calc((100vw - 1124px) / 2));
    padding-right: max(28px, calc((100vw - 1124px) / 2));
}

.pilot .eyebrow,
.pilot p {
    color: #d9fff9;
}

.pilot .primary-action {
    background: #fff;
    color: var(--teal-dark);
}

footer {
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding: 26px 28px;
}

footer span {
    font-weight: 800;
}

@media (max-width: 880px) {
    .site-header {
        grid-template-columns: 1fr auto;
    }

    nav {
        display: none;
    }

    .hero,
    .split-section,
    .pilot {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding-top: 42px;
    }

    .ops-board {
        min-width: 0;
    }

    .feature-grid,
    .steps,
    .branch {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .site-header {
        padding: 0 16px;
    }

    .brand span {
        display: none;
    }

    .hero,
    .section,
    .split-section {
        padding-left: 16px;
        padding-right: 16px;
    }

    h1 {
        font-size: 42px;
    }

    .receipt-strip {
        align-items: flex-start;
        flex-direction: column;
    }
}
