/* Auxy marketing site — DEJAN-family palette and minimalist register.
 *
 * Conventions:
 *   - White base background. Plenty of whitespace.
 *   - Green is the color of "good signal" / primary action.
 *   - Purple is the color of insight / secondary action.
 *   - Red is reserved for negative state.
 *   - Black/gray is body text and structure.
 *
 * No external fonts; system stack for speed and a neutral register.
 */

:root {
    --green:        #5C8C26;
    --green-dark:   #4B7320;
    --purple:       #6F3FA8;
    --purple-dark:  #5A3289;
    --red:          #C73835;
    --black:        #111418;
    --gray-900:     #1F242C;
    --gray-700:     #4B5260;
    --gray-500:     #7B8290;
    --gray-300:     #C3C8D0;
    --gray-100:     #ECEEF1;
    --gray-50:      #F7F8FA;
    --white:        #FFFFFF;

    --max-w:        1200px;
    --max-w-prose:  720px;

    --radius:       6px;
    --radius-lg:    10px;

    --shadow-sm:    0 1px 2px rgba(17, 20, 24, 0.04);
    --shadow:       0 4px 14px rgba(17, 20, 24, 0.06);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--white);
    color: var(--gray-900);
    font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI",
                 system-ui, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* All headings render at 400 weight, sitewide. Specific selectors below
 * tune size / spacing / color but never re-introduce bold. */
h1, h2, h3, h4, h5, h6 { font-weight: 500 !important; }

a { color: var(--green-dark); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--green); }

code, pre {
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.92em;
}

/* ─── Layout primitives ───────────────────────────────────────────────── */

.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

.container-prose {
    max-width: var(--max-w-prose);
    margin: 0 auto;
    padding: 0 24px;
}

section { padding: 96px 0; }
section:first-of-type { padding-top: 64px; }

/* ─── Header ──────────────────────────────────────────────────────────── */

.site-header {
    padding: 28px 0;
    border-bottom: 1px solid transparent;
    position: relative;
}

.site-header .container {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 10px 8px;
    margin-left: auto;
}
.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--gray-900);
    margin: 5px 0;
    transition: transform 200ms ease, opacity 200ms ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    line-height: 1;
}
.brand img { display: block; height: 50px; width: auto; }

.site-nav {
    display: flex;
    gap: 28px;
    align-items: center;
    margin-left: auto;
}
.site-nav > a {
    color: var(--gray-900);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
}
.site-nav > a:hover { color: var(--green-dark); }

.site-nav .ctas {
    display: flex;
    gap: 12px;
    margin-left: 16px;
}

@media (max-width: 820px) {
    .nav-toggle { display: block; }
    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        margin-left: 0;
        padding: 12px 20px 20px;
        background: var(--white);
        box-shadow: 0 12px 28px rgba(17, 20, 24, 0.18);
        z-index: 100;
    }
    .site-nav.is-open { display: flex; }
    .site-nav > a {
        font-size: 17px;
        padding: 12px 4px;
        border-bottom: 1px solid var(--gray-100);
    }
    .site-nav .ctas {
        flex-direction: column;
        gap: 10px;
        margin-left: 0;
        padding-top: 12px;
    }
    .site-nav .ctas .btn {
        width: 100%;
        padding: 14px 22px;
    }

    .site-header::before {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(17, 20, 24, 0.45);
        opacity: 0;
        pointer-events: none;
        transition: opacity 180ms ease;
        z-index: 99;
    }
    body.nav-open .site-header::before {
        opacity: 1;
        pointer-events: auto;
    }
    body.nav-open { overflow: hidden; }
}

/* ─── Buttons ─────────────────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    line-height: 1.2;
    border: 1px solid transparent;
    transition: background 120ms, color 120ms, border-color 120ms;
}
.btn-lg { padding: 18px 30px; font-size: 18px; }

.btn-primary {
    background: var(--green);
    color: var(--white);
    border-color: var(--green);
}
.btn-primary:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
    color: var(--white);
}

.btn-secondary {
    background: var(--purple);
    color: var(--white);
    border-color: var(--purple);
}
.btn-secondary:hover {
    background: var(--purple-dark);
    border-color: var(--purple-dark);
    color: var(--white);
}

.btn-ghost {
    background: transparent;
    color: var(--gray-900);
    border-color: var(--gray-300);
}
.btn-ghost:hover {
    background: var(--gray-50);
    color: var(--gray-900);
}

.btn-secondary-outline {
    background: transparent;
    color: var(--purple);
    border-color: var(--purple);
}
.btn-secondary-outline:hover {
    background: var(--purple);
    color: var(--white);
    border-color: var(--purple);
}

/* ─── Hero ────────────────────────────────────────────────────────────── */

.hero { padding: 96px 0 72px; }
.hero h1 {
    font-size: 30px;
    line-height: 1.3;
    font-weight: 300;
    letter-spacing: -0.005em;
    margin: 0 0 28px;
    color: var(--black);
    max-width: 920px;
}
.hero .lede {
    font-size: clamp(18px, 1.6vw, 22px);
    line-height: 1.5;
    color: var(--gray-700);
    margin: 0 0 40px;
    max-width: 720px;
}
.hero .ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* ─── Section heads ───────────────────────────────────────────────────── */

.section-head { margin: 0 0 40px; max-width: 760px; }
.section-head h2 {
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.015em;
    margin: 0 0 16px;
    color: var(--black);
}
.section-head .kicker {
    color: var(--green-dark);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 14px;
}
.section-head p {
    font-size: 18px;
    line-height: 1.55;
    color: var(--gray-700);
    margin: 0;
}

.alt-bg { background: var(--gray-50); }

/* ─── ARC funnel ──────────────────────────────────────────────────────── */

.arc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 820px) {
    .arc-grid { grid-template-columns: 1fr; }
}
.arc-tile {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 150ms, border-color 150ms;
}
.arc-tile:hover {
    box-shadow: var(--shadow);
    border-color: var(--gray-300);
}
.arc-tile .step {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 13px;
    letter-spacing: 0.1em;
    color: var(--gray-500);
    margin: 0 0 12px;
}
.arc-tile h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--black);
}
.arc-tile.assoc h3 { color: var(--green-dark); }
.arc-tile.relev h3 { color: var(--purple-dark); }
.arc-tile.cite h3  { color: var(--black); }
.arc-tile p {
    font-size: 16px;
    line-height: 1.55;
    color: var(--gray-700);
    margin: 0;
}

/* ─── Focus card grid ─────────────────────────────────────────────────── */

.focus-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
@media (max-width: 720px) {
    .focus-grid { grid-template-columns: 1fr; }
}
.focus-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 24px 26px;
}
.focus-card h4 {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--black);
}
.focus-card p {
    margin: 0;
    color: var(--gray-700);
    font-size: 15px;
    line-height: 1.55;
}

/* ─── Centerpiece (Content Optimization) ──────────────────────────────── */

.centerpiece {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 56px;
    align-items: center;
}
@media (max-width: 900px) {
    .centerpiece { grid-template-columns: 1fr; gap: 36px; }
}
.centerpiece .copy h2 {
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.015em;
    margin: 0 0 20px;
    color: var(--black);
}
.centerpiece .copy p {
    font-size: 17px;
    line-height: 1.65;
    color: var(--gray-700);
    margin: 0 0 14px;
}
.centerpiece .copy .pullquote {
    color: var(--purple-dark);
    font-weight: 600;
    font-size: 18px;
    margin: 18px 0 0;
}

/* The visual side of the centerpiece: a stylised before/after panel
   showing what an algorithmic edit looks like. Pure CSS, no images. */
.edit-panel {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    font-size: 14px;
}
.edit-panel header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--gray-100);
    background: var(--gray-50);
}
.edit-panel header .dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--gray-300);
}
.edit-panel header .filename {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 13px;
    color: var(--gray-700);
    margin-left: 8px;
}
.edit-panel .row {
    display: grid;
    grid-template-columns: 60px 1fr;
    align-items: center;
    padding: 8px 18px;
    border-bottom: 1px solid var(--gray-100);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 13px;
    line-height: 1.5;
}
.edit-panel .row:last-child { border-bottom: none; }
.edit-panel .row.removed { background: rgba(199, 56, 53, 0.06); }
.edit-panel .row.added   { background: rgba(92, 140, 38, 0.08); }
.edit-panel .row .marker {
    color: var(--gray-500);
    font-weight: 600;
}
.edit-panel .row.removed .marker { color: var(--red); }
.edit-panel .row.added   .marker { color: var(--green-dark); }
.edit-panel .row .text {
    color: var(--gray-900);
}
.edit-panel .row.removed .text {
    color: var(--gray-700);
    text-decoration: line-through;
    text-decoration-color: rgba(199, 56, 53, 0.4);
}
.edit-panel footer {
    padding: 14px 18px;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--gray-700);
}
.edit-panel footer .lift {
    color: var(--green-dark);
    font-weight: 600;
}

/* ─── Why us / closing CTA strip ──────────────────────────────────────── */

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}
@media (max-width: 820px) {
    .why-grid { grid-template-columns: 1fr; gap: 28px; }
}
.why-grid .copy p {
    font-size: 17px;
    line-height: 1.65;
    color: var(--gray-700);
    margin: 0;
}
.why-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}
.why-grid ul li {
    padding-left: 22px;
    position: relative;
    color: var(--gray-700);
    line-height: 1.5;
}
.why-grid ul li::before {
    content: "";
    position: absolute;
    left: 0; top: 9px;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--green);
}

.cta-band {
    background: var(--gray-50);
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
    padding: 64px 0;
    text-align: center;
}
.cta-band h2 {
    font-size: clamp(26px, 3vw, 36px);
    margin: 0 0 14px;
    color: var(--black);
}
.cta-band p {
    color: var(--gray-700);
    margin: 0 0 28px;
    font-size: 17px;
}

/* ─── Footer ──────────────────────────────────────────────────────────── */

.site-footer {
    padding: 48px 0;
    color: var(--gray-500);
    font-size: 14px;
    border-top: 1px solid var(--gray-100);
}
.site-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.site-footer nav {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}
.site-footer nav a {
    color: var(--gray-500);
    text-decoration: none;
}
.site-footer nav a:hover { color: var(--gray-900); }

/* ─── Prose (markdown-rendered body content) ──────────────────────────── */

.prose {
    color: var(--gray-900);
    font-size: 17px;
    line-height: 1.7;
}
.prose h1 {
    font-size: clamp(36px, 4vw, 52px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--black);
    margin: 0 0 24px;
}
.prose h2 {
    font-size: clamp(26px, 2.5vw, 34px);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.2;
    color: var(--black);
    margin: 56px 0 18px;
}
.prose h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--black);
    margin: 36px 0 12px;
}
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 26px; }
.prose li { margin: 0 0 10px; }
.prose li > strong:first-child { color: var(--black); }
.prose blockquote {
    margin: 24px 0;
    padding: 14px 22px;
    border-left: 3px solid var(--green);
    color: var(--gray-700);
    background: var(--gray-50);
    font-style: italic;
}
.prose code {
    background: var(--gray-100);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}
.prose pre {
    background: var(--gray-50);
    padding: 16px 18px;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.5;
}
.prose pre code {
    background: transparent;
    padding: 0;
    border-radius: 0;
}
.prose a {
    color: var(--green-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.prose a:hover { color: var(--green); }
.prose strong { font-weight: 700; }
.prose em { font-style: italic; }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius); margin: 24px 0; }
.prose hr {
    border: 0;
    height: 1px;
    background: var(--gray-100);
    margin: 36px 0;
}

/* ─── Post / tool card grids ──────────────────────────────────────────── */

.post-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
@media (max-width: 720px) { .post-grid { grid-template-columns: 1fr; } }
.post-card {
    display: block;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 28px 30px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 150ms, border-color 150ms;
}
.post-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--gray-300);
    color: inherit;
}
.post-card .post-meta {
    color: var(--gray-500);
    font-size: 13px;
    margin: 0 0 8px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    letter-spacing: 0.05em;
}
.post-card h3 {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 700;
    color: var(--black);
    line-height: 1.25;
}
.post-card p { margin: 0; color: var(--gray-700); font-size: 15px; line-height: 1.55; }
.post-card .cover {
    width: 100%; height: 180px;
    object-fit: cover;
    border-radius: var(--radius);
    margin: 0 0 20px;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
@media (max-width: 720px) { .tool-grid { grid-template-columns: 1fr; } }
.tool-card {
    display: block;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 28px 30px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 150ms, border-color 150ms;
}
.tool-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--gray-300);
    color: inherit;
}
.tool-card h3 {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--black);
}
.tool-card p {
    margin: 0;
    color: var(--gray-700);
    font-size: 15px;
    line-height: 1.55;
}

.empty-state {
    color: var(--gray-500);
    text-align: center;
    padding: 80px 0;
    font-size: 16px;
}

/* ─── Featured tool card (single hero on /tools) ──────────────────────── */

.featured-tool {
    display: block;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-left: 4px solid var(--green);
    border-radius: var(--radius-lg);
    padding: 44px 52px;
    text-decoration: none;
    color: inherit;
    margin: 0 0 36px;
    transition: box-shadow 200ms, border-color 200ms, transform 200ms;
}
.featured-tool:hover {
    box-shadow: var(--shadow);
    border-color: var(--gray-300);
    border-left-color: var(--green);
    color: inherit;
    transform: translateY(-1px);
}
.featured-tool .kicker {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0 0 12px;
    color: var(--green-dark);
}
.featured-tool h2 {
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.15;
    margin: 0 0 16px;
    color: var(--black);
}
.featured-tool p {
    font-size: 17px;
    color: var(--gray-700);
    line-height: 1.6;
    margin: 0 0 16px;
    max-width: 760px;
}
.featured-tool .learn-more {
    color: var(--green-dark);
    font-weight: 600;
    font-size: 15px;
}

/* ─── /app capability-layer head (group label between focus-grids) ───── */

.layer-head {
    margin: 48px 0 18px;
    font-size: 14px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gray-500);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-weight: 500 !important;
}
.layer-head:first-of-type { margin-top: 24px; }

/* ─── /app login strip ────────────────────────────────────────────────── */

.app-login-strip {
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-100);
    padding: 14px 0;
}
.app-login-strip .container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}
.app-login-strip span {
    color: var(--gray-700);
    font-size: 14px;
}

/* ─── Coverage thesis (model-priority tier cards) ─────────────────────── */

.thesis-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
@media (max-width: 760px) { .thesis-grid { grid-template-columns: 1fr; } }
.thesis-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 28px 30px;
}
.thesis-card .tier {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0 0 12px;
    color: var(--gray-500);
}
.thesis-card h3 {
    margin: 0 0 12px;
    font-size: 20px;
    color: var(--black);
}
.thesis-card p {
    margin: 0;
    color: var(--gray-700);
    font-size: 15px;
    line-height: 1.55;
}
.thesis-card.priority {
    border-color: var(--green);
    box-shadow: inset 0 0 0 1px var(--green);
}
.thesis-card.priority .tier { color: var(--green-dark); }
.thesis-card.secondary .tier { color: var(--purple-dark); }
.thesis-card.niche .tier     { color: var(--purple-dark); }
.thesis-card.noise           { background: var(--gray-50); }
.thesis-card.noise h3        { color: var(--gray-700); }
.thesis-card.noise p         { color: var(--gray-500); }
