:root {
    --cw-canvas: #f7fafc;
    --cw-pale: #eaf6ff;
    --cw-sky: #bfe4ff;
    --cw-core: #2f8dd8;
    --cw-deep: #0d4f7c;
    --cw-ink: #102331;
    --cw-mint: #7ddfa3;
    color-scheme: light;
}

html { min-width: 320px; scroll-behavior: smooth; background: var(--cw-canvas); }
.presite {
    overflow: clip;
    background: radial-gradient(circle at 85% 10%, rgba(191, 228, 255, .32), transparent 27%), var(--cw-canvas);
    font-family: Inter, "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* The mark and process diagram are drawn in CSS; page layout lives in Tailwind. */
.brand-mark { position: relative; width: 40px; height: 40px; flex: 0 0 auto; border-radius: 12px; background: var(--cw-deep); }
.brand-mark::before, .brand-mark::after { position: absolute; top: 19px; left: 9px; width: 22px; height: 2px; background: var(--cw-sky); content: ""; }
.brand-mark::after { transform: rotate(-45deg); }
.brand-mark span { position: absolute; z-index: 1; width: 6px; height: 6px; border-radius: 50%; background: var(--cw-mint); }
.brand-mark span:nth-child(1) { top: 8px; left: 8px; }
.brand-mark span:nth-child(2) { top: 18px; left: 8px; }
.brand-mark span:nth-child(3) { top: 18px; right: 8px; }
.brand-mark span:nth-child(4) { right: 8px; bottom: 8px; }
.header-status > span, .status-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--cw-mint); box-shadow: 0 0 0 5px rgba(125, 223, 163, .21); }
.signal-live i { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--cw-mint); }
.signal-track { position: absolute; right: 10%; left: 10%; height: 2px; background: linear-gradient(90deg, var(--cw-sky) 0 35%, var(--cw-core) 35% 78%, var(--cw-mint) 78%); }
.signal-node { position: relative; z-index: 1; display: flex; width: 40px; height: 40px; align-items: center; justify-content: center; border: 3px solid var(--cw-pale); border-radius: 50%; background: var(--cw-core); color: #fff; font-size: 10px; font-weight: 800; }
.signal-node--first { background: var(--cw-deep); }
.signal-node--last { background: var(--cw-mint); color: var(--cw-ink); }

/* Framework-rendered form fields cannot receive utility classes from this view. */
.presite-contact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.presite-contact-form .form-field--textarea,
.presite-contact-form .form-field--select,
.presite-contact-form .form-field--checkbox,
.presite-contact-form .form-actions,
.presite-contact-form .form-message { grid-column: 1 / -1; }
.presite-contact-form .form-field label { display: block; margin-bottom: 8px; color: var(--cw-ink); font-size: 12px; font-weight: 750; }
.presite-contact-form input:not([type="checkbox"]),
.presite-contact-form textarea,
.presite-contact-form select { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #cadeed; border-radius: 8px; background: var(--cw-canvas); color: var(--cw-ink); font: inherit; }
.presite-contact-form textarea { min-height: 136px; resize: vertical; }
.presite-contact-form input:focus-visible,
.presite-contact-form textarea:focus-visible,
.presite-contact-form select:focus-visible { outline: 2px solid var(--cw-core); outline-offset: 2px; box-shadow: 0 0 0 4px rgba(47, 141, 216, .15); }
.presite-contact-form .form-field--checkbox label { display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; }
.presite-contact-form .form-field--checkbox a, .privacy-document section a { color: var(--cw-deep); text-underline-offset: 3px; }
.presite-contact-form button { min-height: 48px; padding: 0 20px; border: 0; border-radius: 8px; background: var(--cw-core); color: #fff; cursor: pointer; font: inherit; font-size: 12px; font-weight: 750; }
.presite-contact-form button:hover { background: var(--cw-deep); }
.presite-contact-form button:focus-visible { outline: 3px solid var(--cw-deep); outline-offset: 3px; }
.form-field__error { margin: 7px 0 0; color: #8d3c2e; font-size: 11px; }
.form-message { padding: 13px 15px; border-radius: 8px; font-size: 12px; line-height: 1.5; }
.form-message--success { color: var(--cw-deep); background: #e7f8ed; }
.form-message--error { color: #8a3636; background: #fff0ec; }
.presite-honeypot { position: absolute !important; left: -9999px !important; }

/* Privacy text is repeated server-rendered content, so it stays component styled. */
.privacy-document section { padding: 28px 0; border-top: 1px solid #d6e7f3; }
.privacy-document section h2 { margin: 0 0 14px; color: var(--cw-ink); font-size: 26px; font-weight: 750; letter-spacing: -.03em; }
.privacy-document section p { margin: 0 0 12px; color: #526c7d; font-size: 15px; line-height: 1.8; }
.privacy-document section p:last-child { margin-bottom: 0; }
.privacy-draft { margin: 0 0 36px; padding: 18px 20px; border: 1px solid #c7e1f3; border-radius: 8px; background: #fff; color: var(--cw-ink); font-size: 14px; line-height: 1.6; }

@media (max-width: 639px) {
    .brand-mark { width: 34px; height: 34px; }
    .brand-mark::before, .brand-mark::after { top: 16px; left: 7px; width: 20px; }
    .brand-mark span:nth-child(1) { top: 6px; left: 6px; }
    .brand-mark span:nth-child(2) { top: 15px; left: 6px; }
    .brand-mark span:nth-child(3) { top: 15px; right: 6px; }
    .brand-mark span:nth-child(4) { right: 6px; bottom: 6px; }
    .signal-node { width: 32px; height: 32px; font-size: 8px; }
    .presite-contact-form { grid-template-columns: 1fr; }
    .presite-contact-form .form-field { grid-column: 1; }
}

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