/* Synapse Studio website — editorial, high-contrast, square-edged. Montserrat (OFL, self-hosted). */

@font-face {
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url("/fonts/montserrat-latin.woff2") format("woff2");
}

:root {
    --black: #0a0a0b;
    --ink: #121214;
    --panel: #17171a;
    --white: #ffffff;
    --paper: #f9f9f9;
    --text: #e9e9ec;
    --muted: #9b9ba3;
    --muted-dark: #616161;
    --line: rgba(255, 255, 255, 0.16);
    --line-strong: rgba(255, 255, 255, 0.32);
    --line-dark: rgba(10, 10, 11, 0.14);
    --accent: #3b82f6;
    --accent-soft: rgba(59, 130, 246, 0.16);
    --max: 1200px;
    --gutter: clamp(1.25rem, 4vw, 3rem);
    --section: clamp(4.5rem, 10vw, 8.5rem);
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-weight: 400;
    font-size: 1.0625rem;
    line-height: 1.65;
    background: var(--black);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip-link {
    position: absolute; left: -999px; top: 0; z-index: 100;
    background: var(--white); color: var(--black); padding: .75rem 1rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.container { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- type ---------- */

.label {
    display: inline-block;
    font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
    color: var(--muted);
}
.label--accent { color: var(--accent); }

h1, h2, h3, h4 { margin: 0; color: var(--white); line-height: 1.08; }
h1, .display { font-weight: 200; font-size: clamp(2.6rem, 6.4vw, 5.6rem); letter-spacing: -0.02em; }
h2 { font-weight: 300; font-size: clamp(2rem, 4vw, 3.3rem); letter-spacing: -0.015em; }
h3 { font-weight: 600; font-size: 1.15rem; letter-spacing: .01em; }
strong, b { font-weight: 700; color: var(--white); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); font-weight: 300; color: var(--text); max-width: 46ch; }
.muted { color: var(--muted); }
p { margin: 0 0 1rem; }

/* ---------- buttons ---------- */

.btn, button.btn {
    display: inline-flex; align-items: center; gap: .6rem;
    padding: .95rem 1.6rem;
    font: inherit; font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
    text-decoration: none; cursor: pointer;
    border: 1px solid var(--white); border-radius: 0;
    background: var(--white); color: var(--black);
    transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: transparent; color: var(--white); }
.btn--ghost { background: transparent; color: var(--white); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--white); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: var(--white); }
.btn--accent:hover { background: transparent; color: var(--white); }
.btn--small { padding: .65rem 1.1rem; font-size: .7rem; }
.arrow-link {
    font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
    text-decoration: none; border-bottom: 1px solid var(--line-strong); padding-bottom: .2rem;
}
.arrow-link::after { content: " →"; }
.arrow-link:hover { border-color: var(--white); }
.actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

/* ---------- header ---------- */

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(10, 10, 11, 0.82);
    backdrop-filter: saturate(140%) blur(14px);
    border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 2rem; }
.brand {
    display: inline-flex; align-items: center; gap: .65rem; text-decoration: none;
    font-weight: 700; font-size: .9rem; letter-spacing: .28em; text-transform: uppercase; color: var(--white);
}
.brand svg { width: 26px; height: 26px; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a, .nav summary {
    font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
    text-decoration: none; color: var(--text); cursor: pointer;
}
.nav a:hover, .nav summary:hover { color: var(--white); }
.nav .btn { color: var(--black); }
.nav .btn:hover { color: var(--white); }
.nav-dropdown { position: relative; }
.nav-dropdown summary { list-style: none; }
.nav-dropdown summary::-webkit-details-marker { display: none; }
.nav-dropdown summary::after { content: " ▾"; font-size: .6rem; }
.nav-dropdown-panel {
    position: absolute; top: calc(100% + 1.4rem); left: -1.5rem; width: 340px;
    background: var(--ink); border: 1px solid var(--line); padding: .75rem;
}
.nav-dropdown-panel a { display: block; padding: .8rem .9rem; text-transform: none; letter-spacing: 0; font-size: .92rem; font-weight: 500; }
.nav-dropdown-panel a small { display: block; color: var(--muted); font-weight: 400; font-size: .8rem; }
.nav-dropdown-panel a:hover { background: var(--panel); }
.menu-toggle { display: none; }

@media (max-width: 960px) {
    .nav { display: none; }
    .menu-toggle { display: block; }
    .menu-toggle summary {
        list-style: none; cursor: pointer; font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
    }
    .menu-toggle summary::-webkit-details-marker { display: none; }
    .menu-toggle[open] .mobile-menu { display: flex; }
    .mobile-menu {
        display: none; flex-direction: column; gap: .25rem;
        position: absolute; left: 0; right: 0; top: 72px;
        background: var(--black); border-bottom: 1px solid var(--line); padding: 1rem var(--gutter) 1.5rem;
    }
    .mobile-menu a { padding: .7rem 0; text-decoration: none; border-bottom: 1px solid var(--line); }
    .mobile-menu .btn { margin-top: 1rem; justify-content: center; border-bottom: 1px solid var(--white); }
}

/* ---------- sections ---------- */

.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .6); }
.section--paper { background: var(--paper); color: #212121; }
.section--paper h1, .section--paper h2, .section--paper h3, .section--paper strong { color: var(--black); }
.section--paper .muted, .section--paper .label { color: var(--muted-dark); }
.section--paper .card { background: var(--white); border-color: var(--line-dark); }
.section--paper .card p { color: var(--muted-dark); }
.section--line { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 1.25rem; max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }

/* ---------- hero ---------- */

.hero {
    position: relative; overflow: hidden;
    padding-block: clamp(5rem, 12vw, 10rem) clamp(4rem, 8vw, 7rem);
    border-bottom: 1px solid var(--line);
}
.hero::before {
    content: ""; position: absolute; inset: -30% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
    background: radial-gradient(closest-side, rgba(59, 130, 246, 0.22), transparent 70%);
    pointer-events: none;
}
.hero::after {
    content: ""; position: absolute; inset: 0;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 120px 120px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .35), transparent 75%);
    pointer-events: none; opacity: .5;
}
.hero .container { position: relative; z-index: 1; display: grid; gap: 2rem; }
.hero h1 { max-width: 15ch; }
.hero h1 em { font-style: normal; font-weight: 700; }
.category-strip {
    display: flex; flex-wrap: wrap; gap: .4rem 1.4rem;
    font-size: .74rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--muted);
}
.category-strip span + span::before { content: "|"; margin-right: 1.4rem; color: var(--line-strong); }
.hero-note { font-size: .82rem; color: var(--muted); }

/* product mock (CSS only, stands in for screenshots) */
.mock {
    margin-top: clamp(3rem, 6vw, 5rem);
    border: 1px solid var(--line-strong); background: linear-gradient(180deg, var(--panel), var(--black));
    display: grid; grid-template-columns: 200px 1fr; min-height: 380px;
}
.mock-side { border-right: 1px solid var(--line); padding: 1.2rem; display: grid; gap: .55rem; align-content: start; }
.mock-side i { display: block; height: 10px; background: var(--line); }
.mock-side i:nth-child(1) { width: 60%; background: var(--white); opacity: .8; height: 12px; margin-bottom: .8rem; }
.mock-side i:nth-child(3) { background: var(--accent); width: 80%; }
.mock-main { padding: 1.4rem; display: grid; gap: 1rem; grid-template-columns: repeat(7, 1fr); grid-auto-rows: 70px; }
.mock-main b { grid-column: 1 / -1; height: 14px; width: 30%; background: var(--line-strong); }
.mock-main span { border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); position: relative; }
.mock-main span.post::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 8px; height: 22px; background: var(--accent-soft); border-left: 2px solid var(--accent); }
.mock-main span.mail::after { content: ""; position: absolute; left: 8px; right: 8px; top: 8px; height: 16px; background: rgba(255, 255, 255, 0.12); }
@media (max-width: 720px) { .mock { grid-template-columns: 1fr; } .mock-side { display: none; } .mock-main { grid-template-columns: repeat(4, 1fr); } }

/* ---------- grids & cards ---------- */

.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--3, .grid--2, .grid--4 { grid-template-columns: 1fr; } }

.card {
    background: var(--black); padding: clamp(1.6rem, 3vw, 2.4rem);
    display: flex; flex-direction: column; gap: 1rem; text-decoration: none;
    transition: background .25s;
}
a.card:hover { background: var(--ink); }
.card p { color: var(--muted); margin: 0; }
.card .arrow-link { margin-top: auto; align-self: flex-start; }
.card-index { font-size: .72rem; font-weight: 600; letter-spacing: .2em; color: var(--accent); }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tags li { list-style: none; font-size: .72rem; padding: .3rem .6rem; border: 1px solid var(--line); color: var(--text); }
.tags { padding: 0; margin: 0; }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.checklist li { padding-left: 1.6rem; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .62em; width: .7rem; height: 1px; background: var(--accent); }

/* ---------- split / steps / stats ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.steps li { list-style: none; background: var(--black); padding: 2rem; counter-increment: step; }
.steps li::before { content: "0" counter(step); display: block; font-size: 2.6rem; font-weight: 200; color: var(--white); margin-bottom: 1rem; }
.steps { padding: 0; margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.statement { font-weight: 200; font-size: clamp(1.8rem, 3.6vw, 3rem); line-height: 1.2; color: var(--white); max-width: 22ch; }
.statement em { font-style: normal; font-weight: 700; }

.chat {
    border: 1px solid var(--line-strong); background: var(--ink); padding: 1.5rem; display: grid; gap: .9rem; font-size: .92rem;
}
.chat p { margin: 0; padding: .8rem 1rem; max-width: 85%; }
.chat .you { justify-self: end; background: var(--white); color: var(--black); }
.chat .ai { background: var(--panel); border-left: 2px solid var(--accent); }
.chat .tool { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 0 1rem; }

/* ---------- pricing ---------- */

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--black); padding: clamp(1.8rem, 3vw, 2.6rem); display: flex; flex-direction: column; gap: 1.2rem; }
.plan--featured { background: var(--ink); box-shadow: inset 0 2px 0 var(--accent); }
.plan h3 { font-size: .8rem; letter-spacing: .24em; text-transform: uppercase; font-weight: 700; }
.plan .price { font-size: clamp(2.6rem, 4vw, 3.4rem); font-weight: 200; color: var(--white); line-height: 1; }
.plan .price small { font-size: .9rem; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.plan .per-year { font-size: .85rem; color: var(--muted); }
.plan form { display: grid; gap: .6rem; margin-top: auto; }
.plan > .btn { margin-top: auto; justify-content: center; }
.plan form .btn { justify-content: center; }
.badge { align-self: flex-start; font-size: .66rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; background: var(--accent); color: var(--white); padding: .3rem .6rem; }

.compare { width: 100%; border-collapse: collapse; font-size: .95rem; }
.compare th, .compare td { padding: 1rem; border-bottom: 1px solid var(--line-dark); text-align: left; }
.compare thead th { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; }
.compare .yes { color: var(--accent); font-weight: 700; }
.compare .no { color: #b0b0b0; }
.table-scroll { overflow-x: auto; }

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
    list-style: none; cursor: pointer; padding: 1.4rem 2.5rem 1.4rem 0; position: relative;
    font-weight: 500; font-size: 1.1rem; color: var(--white);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 1.1rem; font-size: 1.6rem; font-weight: 200; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); max-width: 70ch; padding-bottom: 1.4rem; margin: 0; }

/* ---------- CTA band ---------- */

.cta-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background:
    radial-gradient(60% 120% at 50% 0%, rgba(59, 130, 246, 0.18), transparent 70%), var(--black); }
.cta-band .container { display: grid; justify-items: center; text-align: center; gap: 1.6rem; }

/* ---------- forms ---------- */

.form { display: grid; gap: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .45rem; }
.field label, .field legend { font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
    font: inherit; color: var(--white); background: transparent;
    border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; padding: .7rem 0;
}
.field select option { color: var(--black); }
.field textarea { min-height: 150px; resize: vertical; border: 1px solid var(--line-strong); padding: .8rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--white); }
.field .error, .form-error { color: #ff8a80; font-size: .85rem; }
.checkbox { display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.checkbox input { margin-top: .35rem; accent-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- prose (legal, security) ---------- */

.prose { max-width: 760px; }
.prose h2 { font-size: 1.6rem; font-weight: 300; margin: 2.6rem 0 1rem; }
.prose h3 { margin: 1.8rem 0 .6rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }
.notice { border-left: 2px solid var(--accent); background: var(--accent-soft); padding: 1rem 1.2rem; font-size: .92rem; }

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding-block: 4rem 2.5rem; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer-grid a { text-decoration: none; color: var(--text); }
.footer-grid a:hover { color: var(--white); }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; color: var(--muted); font-size: .8rem; }

/* ---------- motion ---------- */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
.footer-about { margin-top: 1rem; max-width: 34ch; }
.actions--center { justify-content: center; margin-top: 2.5rem; }
.plan { position: relative; }
.plan .badge { position: absolute; top: clamp(1.8rem, 3vw, 2.6rem); right: clamp(1.8rem, 3vw, 2.6rem); }
.plans + .muted, .table-scroll + .muted { margin-top: 1.5rem; }
@media (max-width: 640px) {
    .category-strip { gap: .3rem .9rem; letter-spacing: .18em; }
    .category-strip span + span::before { margin-right: .9rem; }
    .mock-main { grid-auto-rows: 48px; gap: .5rem; padding: 1rem; }
}
@media (max-width: 720px) { .mock-main span:nth-of-type(n+13) { display: none; } }
@media (max-width: 720px) { .mock { min-height: 0; } }
.hero .split { align-items: start; }
.social-links { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex !important; gap: 1.2rem; }
.social-links a { font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.footer-contact { margin-top: 1.2rem; font-size: .85rem; }
.contact-direct { margin-top: 2rem; font-size: .92rem; }

/* ---------- account (sign-in, sign-up, account page) ---------- */

.auth { max-width: 560px; }
.auth .form { margin-top: 2rem; }
.actions form { margin: 0; }
.nav-form { display: contents; }
.account-company { border: 1px solid var(--line); margin-bottom: 1.5rem; }
.account-company-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.account-company-head h3 { font-size: 1.3rem; font-weight: 600; color: var(--white); }
.account-company-head .badge { align-self: center; }
.plans--compact .plan { padding: 1.4rem; gap: .8rem; }
.plans--compact .plan h4 { font-size: .8rem; letter-spacing: .24em; text-transform: uppercase; font-weight: 700; }
.plans--compact .plan .price { font-size: 2rem; }
.account-new-company { margin-top: 2rem; max-width: 560px; }
.account-new-company summary { cursor: pointer; font-weight: 600; color: var(--white); margin-bottom: 1rem; }
