:root {
    font-family: system-ui, sans-serif;
    color: #242439;
    background: #f9f8fd;
    line-height: 1.55;
    --accent: #5131a6;
    --line: #dfdbea;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--accent); text-underline-offset: .2em; }
p { margin: 0 0 1rem; }
h1, h2, h3 { line-height: 1.12; }
h1 { margin: .4em 0; font-size: clamp(2.5rem, 7vw, 5rem); letter-spacing: -.06em; }
h2 { margin: 0 0 .75em; font-size: clamp(1.35rem, 3vw, 2rem); letter-spacing: -.035em; }
h3 { margin: 0 0 .75em; }
.wrap { width: min(100% - 2rem, 70rem); margin-inline: auto; }
.narrow { max-width: 31rem; }
.section { padding-block: clamp(1.8rem, 5vw, 4rem); }
.site-header { border-bottom: 1px solid var(--line); background: white; }
.nav, .nav-links, .footer { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 1.2rem; }
.nav { justify-content: space-between; min-height: 4.5rem; padding-block: .6rem; }
.brand { color: #262244; text-decoration: none; font-weight: 850; font-size: 1.45rem; letter-spacing: -.055em; }
.brand span { color: var(--accent); margin-left: .13em; }
.hero { background: #e8defc; }
.hero-content { padding-block: clamp(3rem, 9vw, 7rem); }
.eyebrow { color: #42298d; font-weight: 700; }
.lead { font-size: clamp(1.15rem, 3vw, 1.45rem); max-width: 36rem; }
.button {
    border: 1px solid transparent;
    border-radius: .65rem;
    background: var(--accent);
    color: white;
    padding: .67rem 1rem;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    display: inline-block;
    justify-self: start;
}
.button:hover { background: #3b2280; }
.secondary { background: white; border-color: var(--accent); color: var(--accent); }
.secondary:hover { background: #f1eafb; }
.text-button { border: 0; padding: 0; background: transparent; color: var(--accent); text-decoration: underline; font: inherit; cursor: pointer; }
.cards, .contact-grid, .field-grid, .stack { display: grid; gap: 1rem; align-items: start; }
.cards, .contact-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.manage-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); }
.field-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); }
.card, .flash { background: white; border: 1px solid var(--line); border-radius: 1rem; padding: clamp(1rem, 4vw, 1.7rem); }
.flash { margin-top: 1rem; }
.error { border-color: #9c3d4d; }
.flash ul { margin: 0; }
.card form + form, form + details, details + details, details form, .section > .card { margin-block: 1rem; }
label { display: grid; gap: .3rem; font-weight: 650; }
input, textarea, select {
    min-width: 0;
    width: 100%;
    border: 1px solid #a69ab8;
    border-radius: .45rem;
    background: #fff;
    color: inherit;
    padding: .6rem;
    font: inherit;
}
.checkbox { grid-template-columns: auto 1fr; align-items: center; }
summary { color: var(--accent); font-weight: 700; cursor: pointer; }
.clean-list { padding-left: 1.25rem; }
.clean-list li + li { margin-top: .5rem; }
.preserve { white-space: pre-wrap; overflow-wrap: anywhere; }
.inline { display: inline; margin-left: .5rem; }
.footer { min-height: 5rem; border-top: 1px solid var(--line); }
:focus-visible { outline: 3px solid #6949c9; outline-offset: 3px; }
