/*
 * hostozo.com — the public marketing site.
 *
 * Deliberately self-contained: this site shares no CSS, tokens, fonts or JS
 * with the control panel in web/. The two are free to look different and to
 * change independently.
 */

/* ---------------------------------------------------------------- fonts --
 * JetBrains Mono, self-hosted (latin + latin-ext). Google's CDN would put a
 * third-party request on every page load; these two files are 55 KB together.
 */
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url(../fonts/jetbrains-mono-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url(../fonts/jetbrains-mono-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------- tokens -- */
:root {
    --bg: #0e0d0b;
    --bg-band: #110f0e;
    --surface: #131110;
    --surface-cell: #141211;
    --surface-inset: #0b0a09;

    --rule: #211e1a;
    --rule-soft: #1c1917;
    --border: #262320;
    --border-field: #2a2620;
    --border-quiet: #35302a;
    --border-quiet-hover: #5c554b;

    --fg: #e7e2d6;
    --fg-display: #f6f1e6;
    --fg-heading: #f4efe3;
    --fg-secondary: #cdc7b8;
    --fg-body: #a8a294;
    --fg-muted: #99937f;
    --fg-label: #7d776b;
    --fg-faint: #6f695e;

    --accent: #e8a33d;
    --accent-hover: #f2bd6a;
    --on-accent: #16130f;

    --ok: #7db26a;
    --ok-border: #3a4d33;
    --ok-bg: #121611;

    --font: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    --gutter: 32px;
    --wrap: 1180px;
    --section-gap: 88px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover,
a:focus-visible {
    color: var(--accent-hover);
}

img {
    max-width: 100%;
}

::selection {
    background: var(--accent);
    color: #14120f;
}

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

/* ------------------------------------------------------------- skeleton -- */
.wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding-inline: var(--gutter);
}

.section {
    padding-block: var(--section-gap);
}

/* A shaded band, ruled off from the section above it. */
.band {
    background: var(--bg-band);
    border-top: 1px solid var(--rule);
}

.band--closed {
    border-bottom: 1px solid var(--rule);
}

.ruled {
    border-top: 1px solid var(--rule);
}

/* Hairline grids: a 1px gap over the page background does the ruling, so the
 * cells hold their lines at any column count the auto-fit resolves to. */
.grid-hairline {
    display: grid;
    gap: 1px;
}

.kicker {
    margin: 0 0 18px;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--fg-label);
}

.section-title {
    margin: 0 0 56px;
    font-size: clamp(26px, 4.4vw, 34px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--fg-heading);
    max-width: 26ch;
}

.section-title--tight {
    margin-bottom: 24px;
}

.section-title--narrow {
    max-width: 24ch;
}

/* ----------------------------------------------------------------- head -- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px var(--gutter);
    border-bottom: 1px solid var(--rule);
    background: rgb(14 13 11 / 0.92);
    backdrop-filter: blur(8px);
}

.brand {
    display: flex;
    align-items: baseline;
    gap: 14px;
}

.brand__name {
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.22em;
    color: var(--fg-heading);
}

.brand__tag,
.header-note {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--fg-label);
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* -------------------------------------------------------------- buttons -- */
.btn {
    display: inline-block;
    padding: 15px 26px;
    border: 1px solid transparent;
    font: inherit;
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
}

.btn--primary {
    background: var(--accent);
    color: var(--on-accent);
    font-weight: 700;
}

.btn--primary:hover,
.btn--primary:focus-visible {
    background: var(--accent-hover);
    color: var(--on-accent);
}

.btn--quiet {
    border-color: var(--border-quiet);
    color: var(--fg-secondary);
}

.btn--quiet:hover,
.btn--quiet:focus-visible {
    border-color: var(--border-quiet-hover);
    color: var(--fg-heading);
}

/* The header's compact accent button. */
.btn--small {
    padding: 9px 16px;
    border-color: var(--accent);
    color: var(--accent);
    font-size: 12px;
    font-weight: 500;
}

.btn--small:hover,
.btn--small:focus-visible {
    background: var(--accent);
    color: #14120f;
}

/* ----------------------------------------------------------------- hero -- */
.hero {
    padding: 96px var(--gutter) 72px;
    max-width: var(--wrap);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 860px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
    padding: 6px 12px;
    border: 1px solid var(--border-field);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #9c9689;
}

.pill__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ok);
}

.hero__title {
    margin: 0 0 28px;
    font-size: clamp(32px, 6vw, 52px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--fg-display);
    text-wrap: pretty;
}

.lede {
    margin: 0 0 20px;
    max-width: 60ch;
    font-size: 17px;
    line-height: 1.7;
    color: var(--fg-body);
}

.lede:last-of-type {
    margin-bottom: 40px;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

/* ---------------------------------------------------------------- strip -- */
.strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    max-width: var(--wrap);
    margin: 0 auto;
    padding-inline: var(--gutter);
}

.strip__item {
    padding: 32px 28px;
    border-right: 1px solid var(--rule-soft);
    font-size: 15px;
    line-height: 1.6;
    color: var(--fg-secondary);
}

.strip__item:first-child {
    padding-left: 0;
}

.strip__item:last-child {
    padding-right: 0;
    border-right: 0;
}

.strip__label {
    margin-bottom: 12px;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--fg-label);
}

/* ---------------------------------------------------------------- steps -- */
.steps {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.step {
    background: var(--surface);
    padding: 32px 26px;
}

.step__number {
    margin-bottom: 20px;
    font-size: 12px;
    letter-spacing: 0.1em;
    color: var(--accent);
}

.step__title {
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 700;
    color: var(--fg-heading);
}

.step__body {
    font-size: 14px;
    line-height: 1.65;
    color: var(--fg-muted);
}

/* ------------------------------------------------------------- the panel -- */
.split-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 40px;
}

.split-head .section-title {
    margin-bottom: 0;
    max-width: 30ch;
}

.split-head__aside {
    max-width: 42ch;
    font-size: 14px;
    line-height: 1.65;
    color: var(--fg-muted);
}

.screenshot {
    padding: 10px;
    border: 1px solid var(--border);
    background: var(--surface-inset);
}

.screenshot img {
    display: block;
    width: 100%;
    height: auto;
}

.notes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 24px;
    margin-top: 28px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--fg-muted);
}

.notes__term {
    color: var(--fg-secondary);
}

/* ------------------------------------------------------------- features -- */
.features {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.feature {
    background: var(--surface-cell);
    padding: 28px 24px;
}

.feature__name {
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--fg-heading);
}

.feature__body {
    font-size: 13px;
    line-height: 1.7;
    color: var(--fg-muted);
}

/* -------------------------------------------------------------- pricing -- */
.two-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 48px;
    align-items: start;
}

.prose {
    margin: 0 0 16px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--fg-body);
}

.prose:last-child {
    margin-bottom: 0;
}

.card {
    padding: 30px 28px;
    border: 1px solid var(--border);
    background: var(--surface);
}

.card__label {
    margin-bottom: 22px;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--fg-label);
}

.dash-list {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dash-list li {
    display: flex;
    gap: 12px;
    align-items: baseline;
    font-size: 14px;
    color: var(--fg-secondary);
}

.dash-list li::before {
    content: '—';
    color: var(--accent);
}

/* -------------------------------------------------------------- contact -- */
.contact {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 56px;
    align-items: start;
}

.caret {
    color: var(--accent);
    animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .caret {
        animation: none;
    }

    html {
        scroll-behavior: auto;
    }
}

.contact__email {
    font-size: 13px;
    line-height: 1.9;
    color: var(--fg-label);
}

.form {
    display: grid;
    gap: 22px;
    padding: 32px 30px;
    border: 1px solid var(--border);
    background: var(--surface);
}

.form__row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 22px;
}

.field {
    display: grid;
    gap: 9px;
}

.field__label {
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--fg-label);
}

.field__control {
    padding: 12px 13px;
    border: 1px solid var(--border-field);
    background: var(--bg);
    color: var(--fg);
    font: inherit;
    font-size: 14px;
    outline: none;
}

.field__control:focus {
    border-color: var(--accent);
}

textarea.field__control {
    resize: vertical;
    line-height: 1.6;
}

.field--invalid .field__control {
    border-color: #a8503a;
}

.field__error {
    font-size: 11px;
    letter-spacing: 0.04em;
    color: #d08b6f;
}

/* Never shown to a person: a bot that fills it in is refused. */
.field--trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.form__note {
    font-size: 11px;
    color: var(--fg-faint);
}

.notice {
    padding: 40px 32px;
    border: 1px solid var(--border);
    background: var(--surface);
}

.notice--ok {
    border-color: var(--ok-border);
    background: var(--ok-bg);
}

.notice__label {
    margin-bottom: 14px;
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ok);
}

.notice--error .notice__label {
    color: #d08b6f;
}

.notice__body {
    font-size: 15px;
    line-height: 1.7;
    color: var(--fg-secondary);
}

/* --------------------------------------------------------------- footer -- */
.site-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 28px var(--gutter);
    border-top: 1px solid var(--rule);
}

.site-footer__brand {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.22em;
    color: var(--fg-label);
}

.site-footer__note {
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--fg-faint);
}

/* ---------------------------------------------------- centred pages (404) -- */
.page-centred {
    display: grid;
    place-items: center;
    min-height: 70vh;
    padding: var(--gutter);
    text-align: center;
}

.page-centred h1 {
    margin: 0 0 12px;
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--fg-display);
}

/* ----------------------------------------------------------- responsive -- */
@media (max-width: 900px) {
    .contact {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }
}

@media (max-width: 720px) {
    :root {
        --gutter: 20px;
        --section-gap: 64px;
    }

    .site-header {
        flex-wrap: wrap;
        gap: 12px;
        padding-block: 14px;
    }

    .brand {
        flex-direction: column;
        gap: 4px;
    }

    .header-note {
        display: none;
    }

    .hero {
        padding: 64px var(--gutter) 56px;
    }

    /* Stacked, the vertical rules would run the wrong way. */
    .strip__item {
        padding: 24px 0;
        border-right: 0;
        border-bottom: 1px solid var(--rule-soft);
    }

    .strip__item:last-child {
        border-bottom: 0;
    }

    .form {
        padding: 24px 20px;
    }

    .notice {
        padding: 28px 20px;
    }
}
