/* Sinterly marketing site (Session N4). Clean light theme — the brand
   logos ship on a white background, so a white page lets them sit flush
   (matches the Aikido speed-to-value pattern). No enterprise badges.
   British English. */
:root {
    --bg: #ffffff;
    --panel: #f6f7f9;
    --border: #e6e8ec;
    --text: #0f1222;
    --muted: #5b6070;
    --brand: #6d5efc;
    --brand-hover: #5849e0;
    --maxw: 1080px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background: var(--bg); color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* Nav */
.nav {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.1rem 1.5rem; max-width: var(--maxw); margin: 0 auto;
}
.nav-logo { height: 30px; width: auto; }
.nav-actions { display: flex; align-items: center; gap: 0.6rem; }

/* Buttons */
.btn {
    display: inline-block; border-radius: 9px; padding: 0.7rem 1.35rem;
    font-size: 0.92rem; font-weight: 600; cursor: pointer; border: 1px solid transparent;
    transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); }
.btn-ghost { border-color: var(--border); color: var(--text); background: #fff; }
.btn-ghost:hover { border-color: #cfd3da; }
.btn-lg { padding: 0.85rem 1.8rem; font-size: 1rem; }

/* Hero */
.hero {
    text-align: center; padding: 5rem 1.5rem 4.5rem; max-width: 820px; margin: 0 auto;
}
.hero-mark { width: 72px; height: auto; margin: 0 auto 1.75rem; }
.hero-headline {
    font-size: clamp(2rem, 5vw, 3rem); line-height: 1.12; font-weight: 800;
    letter-spacing: -0.02em; max-width: 15ch; margin: 0 auto 1rem;
}
.hero-sub { color: var(--muted); font-size: 1.15rem; margin-bottom: 2.25rem; }

/* Sections */
.section { max-width: var(--maxw); margin: 0 auto; padding: 4rem 1.5rem; }
.section-alt { background: var(--panel); max-width: none; }
.section-alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section h2 { font-size: 1.85rem; letter-spacing: -0.01em; margin-bottom: 1rem; }
.lead { color: var(--muted); font-size: 1.08rem; max-width: 720px; }

/* Stats */
.stat-row { display: flex; flex-wrap: wrap; gap: 3rem; margin: 2.5rem 0; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 2.6rem; font-weight: 800; color: var(--brand); letter-spacing: -0.02em; }
.stat-label { color: var(--muted); font-size: 0.85rem; max-width: 220px; margin-top: 0.25rem; }

/* Screenshot */
.shot { margin-top: 2rem; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: 0 10px 40px rgba(15,18,34,0.06); }
.shot img { width: 100%; }
.shot figcaption { color: var(--muted); font-size: 0.8rem; padding: 0.7rem 1rem; background: #fff; border-top: 1px solid var(--border); }
.shot-missing img { display: none; }
.shot-missing::before {
    content: "Dashboard screenshot — add real capture (see README)";
    display: block; padding: 3.5rem 1rem; text-align: center; color: var(--muted);
    background: var(--panel); font-size: 0.85rem;
}

/* How it works */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-top: 1.75rem; }
.step { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 1.4rem; }
.step-k { display: block; font-weight: 800; color: var(--brand); margin-bottom: 0.4rem; }
.step p { color: var(--muted); font-size: 0.92rem; }

/* Integrations */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.4rem; }
.chips li { background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 0.45rem 1.05rem; font-size: 0.88rem; color: var(--text); }
.fine { color: var(--muted); font-size: 0.82rem; margin-top: 1rem; }

/* Trust */
.trust { list-style: none; margin-top: 1.4rem; display: grid; gap: 0.85rem; max-width: 720px; }
.trust li { padding-left: 1.6rem; position: relative; color: var(--text); }
.trust li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 800; }

/* CTA */
.cta { text-align: center; }
.trial-form { display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center; margin-top: 1.75rem; }
.trial-form input {
    background: #fff; border: 1px solid var(--border); border-radius: 9px;
    padding: 0.8rem 1rem; color: var(--text); font-size: 0.95rem; min-width: 260px;
}
.trial-form input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(109,94,252,0.15); }
.trial-msg { margin-top: 1rem; font-size: 0.9rem; min-height: 1.2rem; }
.trial-msg.ok { color: #0f9d58; }
.trial-msg.err { color: #d93025; }

/* Footer */
.footer { text-align: center; padding: 3rem 1.5rem; color: var(--muted); border-top: 1px solid var(--border); }
.footer-mark { height: 30px; width: auto; margin: 0 auto 0.8rem; }

/* ── Session N5 additions: nav links, walkthrough, FAQ, docs ── */

/* Nav links (Product · Docs · FAQ · Security) */
.nav-links { display: flex; gap: 1.4rem; }
.nav-links a { color: var(--muted); font-size: 0.92rem; font-weight: 600; }
.nav-links a:hover { color: var(--text); }

/* Trust walkthrough — numbered mechanisms */
.walkthrough { margin: 1.75rem 0 0; padding: 0; list-style: none; counter-reset: walk; display: grid; gap: 1rem; max-width: 780px; }
.walkthrough li {
    counter-increment: walk; position: relative; padding: 1.1rem 1.2rem 1.1rem 3.4rem;
    background: var(--panel); border: 1px solid var(--border); border-radius: 14px;
    color: var(--muted); font-size: 0.95rem;
}
.walkthrough li strong { color: var(--text); display: block; margin-bottom: 0.15rem; }
.walkthrough li::before {
    content: counter(walk); position: absolute; left: 1.1rem; top: 1.15rem;
    width: 1.6rem; height: 1.6rem; border-radius: 999px; background: var(--brand);
    color: #fff; font-weight: 800; font-size: 0.85rem;
    display: flex; align-items: center; justify-content: center;
}

/* FAQ — native details/summary, no JS */
.faq { margin-top: 1.75rem; max-width: 780px; display: grid; gap: 0.7rem; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 0; }
.faq summary {
    cursor: pointer; font-weight: 700; padding: 1rem 1.2rem; list-style: none;
    position: relative; padding-right: 2.6rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.2rem; top: 0.85rem; color: var(--brand); font-size: 1.3rem; font-weight: 800; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 1.2rem 1.1rem; color: var(--muted); font-size: 0.95rem; }
.faq details a { color: var(--brand); }

/* Speed section */
.speed h2 { max-width: 640px; }

/* Product tour — alternating copy / screenshot rows */
.tour-item {
    display: grid; grid-template-columns: 1fr 1.25fr; gap: 2.75rem;
    align-items: center; margin-top: 2.75rem;
}
.tour-item.tour-reverse .tour-copy { order: 2; }
.tour-item.tour-reverse .shot { order: 1; }
.tour-copy h3 { font-size: 1.3rem; letter-spacing: -0.01em; margin-bottom: 0.55rem; }
.tour-copy p { color: var(--muted); font-size: 1rem; }
.tour .shot { margin-top: 0; background: #0f1222; }
@media (max-width: 760px) {
    .tour-item { grid-template-columns: 1fr; gap: 1.1rem; margin-top: 2rem; }
    .tour-item.tour-reverse .tour-copy,
    .tour-item.tour-reverse .shot { order: initial; }
}

/* Footer links */
.footer-links { margin-top: 0.6rem; font-size: 0.85rem; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }

/* Docs pages */
.docs-wrap { display: flex; gap: 3rem; max-width: var(--maxw); margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }
.docs-sidebar { flex: 0 0 210px; font-size: 0.9rem; }
.docs-sidebar h3 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 1.2rem 0 0.5rem; }
.docs-sidebar a { display: block; padding: 0.28rem 0; color: var(--muted); }
.docs-sidebar a:hover, .docs-sidebar a.active { color: var(--brand); }
.docs-main { flex: 1; min-width: 0; max-width: 720px; }
.docs-main h1 { font-size: 2rem; letter-spacing: -0.01em; margin-bottom: 0.8rem; }
.docs-main h2 { font-size: 1.3rem; margin: 2.2rem 0 0.6rem; }
.docs-main p, .docs-main li { color: var(--muted); font-size: 0.97rem; }
.docs-main ul, .docs-main ol { padding-left: 1.3rem; margin: 0.6rem 0 1rem; }
.docs-main strong { color: var(--text); }
.docs-main code { background: var(--panel); border: 1px solid var(--border); border-radius: 6px; padding: 0.1rem 0.4rem; font-size: 0.86em; color: var(--text); }
.docs-main pre { background: #0f1222; color: #e6e8ec; border-radius: 12px; padding: 1rem 1.2rem; overflow-x: auto; margin: 0.8rem 0 1.2rem; font-size: 0.85rem; line-height: 1.55; }
.docs-main pre code { background: none; border: none; color: inherit; padding: 0; }
.docs-main table { border-collapse: collapse; width: 100%; margin: 0.8rem 0 1.2rem; font-size: 0.88rem; }
.docs-main th, .docs-main td { border: 1px solid var(--border); padding: 0.5rem 0.75rem; text-align: left; color: var(--muted); }
.docs-main th { background: var(--panel); color: var(--text); font-weight: 700; }
.docs-note { background: var(--panel); border: 1px solid var(--border); border-left: 3px solid var(--brand); border-radius: 8px; padding: 0.8rem 1rem; margin: 1rem 0; font-size: 0.92rem; color: var(--muted); }

@media (max-width: 760px) {
    .docs-wrap { flex-direction: column; gap: 1.5rem; }
    .docs-sidebar { flex: none; }
    .nav-links { display: none; }
}

@media (max-width: 600px) {
    .stat-row { gap: 1.75rem; }
    .hero { padding: 3.5rem 1.25rem 3rem; }
}
