/* demo.css — /demo and /demo/thanks.
   House style, the same one /pricing and /about use: monospace, a lowercase
   headline, and a hairline-bordered box. All colors come from common.css
   custom properties, so dark mode follows. */

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 0 0 40px;
}

main {
    max-width: 1000px;
    width: 100%;
    padding: 40px 20px 0;
}

/* Smaller than /pricing's one-word "pricing" headline: this one is a
   sentence, and at 80px it wraps into a wall. */
h1 {
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.05;
    margin: 0;
    font-weight: normal;
    letter-spacing: -0.02em;
}

/* Headline on the left, form on the right. */
.demo-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 16px;
    align-items: start;
}

/* Optically level the headline's cap-height with the first field label
   rather than with the top of the card's border. */
.demo-pitch {
    padding-top: 4px;
}

/* Same border, radius and padding as a /pricing plan card. */
.demo-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px;
    background: var(--color-surface);
}

.mf-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mf-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mf-form label span {
    font-size: var(--text-xxs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-secondary);
}

/* Inputs inherit padding, border and radius from common.css; only the
   things common.css leaves to the page are set here. */
.mf-form input,
.mf-form textarea {
    width: 100%;
    box-sizing: border-box;
    font-size: var(--text-sm);
    background: var(--color-bg-subtle);
}

.mf-form textarea {
    resize: vertical;
    min-height: 110px;
    line-height: 1.6;
}

.mf-form input[aria-invalid="true"],
.mf-form textarea[aria-invalid="true"] {
    border-color: var(--color-danger);
}

/* The one filled control on the page, matching the topbar's Get a Demo. */
.mf-submit {
    width: 100%;
    margin-top: 4px;
    padding: 10px 16px;
    border: 1px solid var(--color-text);
    border-radius: var(--radius-sm);
    background: var(--color-text);
    color: var(--color-bg);
    font-family: inherit;
    font-size: var(--text-xs);
    cursor: pointer;
    transition: all 0.15s ease;
}

.mf-submit:hover {
    background: var(--color-text-secondary);
    border-color: var(--color-text-secondary);
}

.mf-submit:focus-visible {
    outline: 2px solid var(--color-link);
    outline-offset: 2px;
}

.mf-submit[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

.mf-status {
    margin: 0;
    font-size: var(--text-xs);
    line-height: 1.5;
    color: var(--color-text-secondary);
    min-height: 20px;
}

.mf-status.is-error { color: var(--color-danger); }
.mf-status.is-ok { color: var(--color-success); }

.demo-thanks {
    padding-top: 4px;
}

@media (max-width: 768px) {
    .demo-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .demo-pitch {
        padding-top: 0;
    }
}
