/* Contact — dark surface, layered on index.css tokens (contact-guided-v1 · dark 2026-07-08).
   Loads AFTER index.css; consumes its :root tokens (--bg,--ink,--ink2,--muted,--cyan,--line,
   --line2,--line3,--panel,--panel2,--warn). Chrome (nav/footer/body) comes from index.css;
   this sheet styles the guided form surface only. Every fg/bg pair meets WCAG 2.2 AA. */

/* ambient surface (2026-07-09) — mirrors index.css's hero washes (--bg2 navy gradient +
   faint cyan radials) so contact reads as the same textured dark system as the homepage.
   All washes darken toward or match --bg (#0A0B0D): --bg2/#0B1F3A sits in the same
   luminance band and the cyan radials cap at 6% alpha — every AA pair verified
   against --bg still passes. */
body {
    background:
        radial-gradient(ellipse at 70% -8%, rgba(0, 212, 255, 0.06) 0%, transparent 55%),
        radial-gradient(ellipse at 12% 40%, rgba(0, 212, 255, 0.035) 0%, transparent 60%),
        linear-gradient(165deg, var(--bg2) 0%, var(--bg) 42%, var(--deep) 100%);
    background-attachment: fixed;
}

/* centered content column on the dark chrome */
#main { max-width: 760px; margin: 0 auto; padding: 56px 32px 96px; }

h1 { font-family: 'Inter', 'Segoe UI', sans-serif; font-size: clamp(30px, 5vw, 44px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; color: var(--ink); margin-bottom: 14px; }
.intro { font-size: 17px; line-height: 1.65; color: var(--ink2); margin-bottom: 26px; max-width: 62ch; }
h2 { font-family: 'Inter', 'Segoe UI', sans-serif; font-size: 20px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; margin: 32px 0 12px; }
a.inline { color: var(--cyan); text-decoration: none; border-bottom: 1px solid rgba(0, 212, 255, 0.35); transition: border-color 0.15s; }
a.inline:hover { border-bottom-color: var(--cyan); }

.early-access-note { margin-top: 24px; padding: 18px 20px; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--cyan); border-radius: 10px; font-size: 15px; color: var(--ink2); line-height: 1.6; }
.early-access-note strong { color: var(--ink); font-weight: 600; }

/* form scaffolding */
form { margin-top: 8px; }
fieldset.step { border: 0; padding: 0; margin: 0 0 8px; min-width: 0; }
fieldset.step > legend { padding: 0; font-size: 17px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; margin-bottom: 6px; }
#identity-step { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.step-hint { font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.field { margin-bottom: 22px; }
.field > label { display: block; font-size: 15px; font-weight: 500; margin-bottom: 8px; color: var(--ink); line-height: 1.4; }
.field .required { color: #ff8d7a; font-weight: 600; }
.opt { color: var(--muted); font-weight: 400; font-size: 0.92em; }
.field-hint { font-size: 13px; color: var(--muted); margin-top: 6px; margin-bottom: 0; }

input[type="text"], input[type="email"], input[type="url"], select, textarea {
    width: 100%; padding: 12px 14px; font-family: inherit; font-size: 15px; color: var(--ink);
    background: var(--bg); border: 1px solid var(--line2); border-radius: 6px;
    transition: border-color 0.15s, box-shadow 0.15s; -webkit-appearance: none; appearance: none;
}
::placeholder { color: #8B8E96; opacity: 1; }   /* --muted ~5.3:1 on --bg — AA */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238B8E96' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; cursor: pointer;
}
textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.12); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #ff8d7a; box-shadow: 0 0 0 3px rgba(255, 141, 122, 0.12); }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }

/* intent radio-cards */
.intent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 12px 0 8px; }
.intent-card { position: relative; display: block; padding: 14px 16px 14px 44px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s; }
.intent-card:hover { border-color: var(--line3); background: var(--panel2); }
.intent-card input[type="radio"] { position: absolute; left: 16px; top: 16px; width: 18px; height: 18px; margin: 0; accent-color: var(--cyan); cursor: pointer; }
.intent-card-title { display: block; font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.intent-card-desc { display: block; font-size: 13px; color: var(--ink2); line-height: 1.45; margin-top: 3px; }
.intent-card:focus-within { outline: 2px solid var(--cyan); outline-offset: 2px; }
.intent-card:has(input:checked) { border-color: var(--cyan); background: var(--panel2); box-shadow: inset 0 0 0 1px var(--cyan); }

/* progressive-disclosure panels */
.conditional-panel { margin: 4px 0 8px; padding: 20px 22px; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--cyan); border-radius: 10px; }
.conditional-panel .field:last-child { margin-bottom: 0; }

.route-note { font-size: 14px; color: var(--ink2); line-height: 1.55; margin-bottom: 16px; }
.conditional-panel .route-note:last-child { margin-bottom: 0; }
.sensitive-warning { margin-top: 10px; margin-bottom: 0; padding: 11px 14px; font-size: 13.5px; line-height: 1.5; color: var(--warn); background: rgba(255, 184, 64, 0.08); border: 1px solid rgba(255, 184, 64, 0.35); border-radius: 8px; }
.sensitive-warning strong { color: #ffd68a; }

/* errors */
.field-error { margin-top: 6px; margin-bottom: 0; font-size: 13px; font-weight: 500; color: #ff8d7a; }
.error-summary { margin: 16px 0; padding: 12px 16px; font-size: 14px; color: #ff8d7a; background: rgba(255, 141, 122, 0.08); border: 1px solid rgba(255, 141, 122, 0.35); border-radius: 8px; }

/* submit + feedback */
.form-actions { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.btn-submit { background: var(--cyan); color: #06222b; border: none; font-family: inherit; font-size: 16px; font-weight: 700; padding: 15px 32px; border-radius: 8px; cursor: pointer; transition: background 0.15s, transform 0.1s; letter-spacing: -0.01em; }
.btn-submit:hover:not(:disabled) { background: var(--cyan2); }
.btn-submit:active:not(:disabled) { transform: translateY(1px); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-submit:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.form-error, .form-success { margin-top: 16px; padding: 12px 16px; border-radius: 8px; font-size: 14px; line-height: 1.5; }
.form-error { background: rgba(255, 141, 122, 0.08); border: 1px solid rgba(255, 141, 122, 0.35); color: #ff8d7a; }
.form-success { background: rgba(67, 210, 111, 0.08); border: 1px solid rgba(67, 210, 111, 0.35); color: #6ee79b; }
.form-success:focus, .form-error:focus { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* direct email fallback (single plain-text address + copy button, 2026-07-09) + footnote */
.direct-email-section { margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--line); }
.direct-email-section h2 { margin-top: 0; }
.direct-email-section p { color: var(--ink2); font-size: 15px; line-height: 1.6; }
.email-plain { color: var(--cyan); font-weight: 600; user-select: all; -webkit-user-select: all; }
.btn-copy {
    display: inline-block; margin-left: 10px; padding: 6px 14px;
    font-family: inherit; font-size: 13px; font-weight: 600; letter-spacing: 0.01em;
    color: var(--ink2); background: var(--panel); border: 1px solid var(--line2);
    border-radius: 6px; cursor: pointer; transition: color 0.15s, border-color 0.15s;
}
.btn-copy:hover { color: var(--ink); border-color: var(--cyan); }
.btn-copy:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.copy-status { min-height: 1.4em; margin-top: 8px; font-size: 13px; color: #6ee79b; }
.footnote { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); line-height: 1.7; }

@media (max-width: 700px) {
    #main { padding: 40px 20px 72px; }
    h1 { font-size: 30px; }
    h2 { font-size: 19px; }
}
@media (max-width: 560px) {
    .intent-grid { grid-template-columns: 1fr; }
    .conditional-panel { padding: 16px; }
}
@media (forced-colors: active) {
    input:focus, select:focus, textarea:focus { outline: 2px solid Highlight; outline-offset: 1px; }
    .intent-card:focus-within { outline: 2px solid Highlight; }
}
