:root {
    color-scheme: light;
    --purple-900: #2f187f;
    --purple-800: #4324aa;
    --purple-700: #5633d4;
    --purple-600: #6b48e5;
    --purple-100: #eee9ff;
    --lavender-50: #f8f7ff;
    --lavender-100: #f1effd;
    --lavender-200: #ded8f7;
    --ink-900: #151a31;
    --ink-800: #252b43;
    --ink-700: #3f4762;
    --ink-600: #59627d;
    --ink-500: #77809a;
    --danger-700: #b4233c;
    --radius-lg: 1rem;
    --radius-xl: 1.4rem;
    --shadow-sm: 0 .6rem 1.8rem rgba(54, 39, 113, .08);
    --shadow-lg: 0 1.25rem 3.5rem rgba(54, 39, 113, .16);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 20rem; scroll-behavior: smooth; }
body { min-height: 100vh; margin: 0; background: var(--lavender-50); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--purple-700); }
h1:focus { outline: none; }

:focus-visible {
    outline: 3px solid rgba(86, 51, 212, .36);
    outline-offset: 3px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.button {
    min-height: 2.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .75rem 1.1rem;
    border: 1px solid transparent;
    border-radius: .9rem;
    font-weight: 750;
    line-height: 1.15;
    text-decoration: none;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:active:not(:disabled) { transform: translateY(1px); }
.button:disabled { opacity: .55; cursor: not-allowed; }
.button--primary {
    color: white;
    background: var(--purple-700);
    box-shadow: 0 .7rem 1.6rem rgba(86, 51, 212, .2);
}
.button--primary:hover:not(:disabled) { background: var(--purple-800); }
.button--outline { color: var(--purple-700); border-color: var(--purple-700); background: white; }
.button--outline:hover:not(:disabled) { background: var(--purple-100); }
.button--compact { min-height: 2.55rem; padding: .6rem .85rem; font-size: .88rem; }
.button--wide { width: 100%; }

.input {
    width: 100%;
    min-height: 3rem;
    padding: .75rem .9rem;
    border: 1px solid #cbc7dc;
    border-radius: .9rem;
    color: var(--ink-900);
    background: white;
    transition: border-color .16s ease, box-shadow .16s ease;
}
.input::placeholder { color: #969db0; }
.input:hover { border-color: #aaa1cf; }
.input:focus { border-color: var(--purple-700); outline: 0; box-shadow: 0 0 0 3px rgba(86, 51, 212, .13); }
textarea.input { min-height: 6.5rem; resize: vertical; }

.valid.modified:not([type=checkbox]) { border-color: #27965e; }
.invalid { border-color: var(--danger-700) !important; }
.validation-message { color: var(--danger-700); font-size: .82rem; }

.page-frame {
    width: min(100% - 2rem, 70rem);
    margin: 0 auto;
    padding: clamp(1.25rem, 4vw, 3.5rem) 0;
}
.page-frame--narrow { width: min(100% - 2rem, 52rem); }
.eyebrow {
    margin: 0 0 .45rem;
    color: var(--purple-700);
    font-size: .78rem;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.section-title { margin: 0; color: var(--ink-900); font-size: clamp(1.15rem, 3vw, 1.45rem); }
.section-copy { margin: .45rem 0 0; color: var(--ink-600); line-height: 1.6; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
