/* The company home page (docs/architecture/operations/company-home-page.md). No build step, no webfonts. */
:root {
    --brand: #1f0060;
    --brand-soft: #ece8f7;
    --text: #17141f;
    --muted: #5b5668;
    --bg: #ffffff;
    --bg-alt: #f7f6fa;
    --line: #e4e1ec;
    --on-brand: #ffffff;
    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root {
        --brand: #b9a6ff;
        --brand-soft: #2a2244;
        --text: #f1eff6;
        --muted: #aaa4b8;
        --bg: #121018;
        --bg-alt: #1a1722;
        --line: #2d2838;
        --on-brand: #120d24;
    }
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

h1,
h2,
h3 {
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0 0 0.75rem;
}

.wrap {
    max-width: 68rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.bar {
    border-bottom: 1px solid var(--line);
}

.bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 4rem;
    flex-wrap: wrap;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    text-decoration: none;
}

/* The mark is dark purple; on a dark page it sits on a light disc, the S showing through. */
@media (prefers-color-scheme: dark) {
    .brand img {
        background: #ffffff;
        border-radius: 50%;
    }
}

.nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.nav a {
    text-decoration: none;
    color: var(--muted);
}

.nav a:hover {
    color: var(--text);
}

/* Buttons */
.button {
    display: inline-block;
    padding: 0.7rem 1.25rem;
    border-radius: 0.5rem;
    background: var(--brand);
    color: var(--on-brand);
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--brand);
}

.button:hover {
    opacity: 0.9;
}

.nav .button.small {
    padding: 0.45rem 0.9rem;
    color: var(--on-brand);
}

.button.ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--line);
}

.button.ghost:hover {
    border-color: var(--muted);
}

.actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Hero */
.hero {
    padding: 5.5rem 0 4.5rem;
}

.hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    max-width: 22ch;
}

.lead {
    font-size: 1.2rem;
    color: var(--muted);
    max-width: 40rem;
    margin: 0 0 2rem;
}

/* Products */
.products {
    background: var(--bg-alt);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 4rem 0;
}

.products h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
}

.card h3 {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.card p {
    margin: 0 0 1rem;
}

.card ul {
    margin: 0 0 1.5rem;
    padding-left: 1.2rem;
    color: var(--muted);
}

.card li + li {
    margin-top: 0.3rem;
}

.tag {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.card .tag {
    margin-bottom: 0.4rem;
}

.badge {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand);
}

.more {
    margin-top: auto;
    font-weight: 600;
    color: var(--brand);
    text-decoration: none;
}

.more:hover {
    text-decoration: underline;
}

.note {
    margin: 1.5rem 0 0;
    color: var(--muted);
    max-width: 44rem;
}

/* Account */
.account {
    padding: 4rem 0;
}

.account-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.account h2 {
    font-size: 1.5rem;
}

.account p {
    margin: 0;
    color: var(--muted);
    max-width: 38rem;
}

/* Footer */
.footer {
    border-top: 1px solid var(--line);
    padding: 2.5rem 0 3rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer p {
    margin: 0 0 0.3rem;
}

.footer strong {
    color: var(--text);
}
