/* threep inquiry form — standalone. No webfonts, no libraries, no third-party assets.
   Tokens mirror the homepage so the page reads as part of the same site. */

:root {
  --bg: #F6F1E7;
  --surface: #FFFFFF;
  --surface-2: #FAF7F0;
  --ink: #0F1B2D;
  --ink-2: #2E3B4F;
  --ink-3: #56627A;
  --rule: #E6DECC;
  --rule-soft: #EFE9DA;
  --accent: #2F6A7C;
  --accent-deep: #1F4F5C;
  --accent-soft: #E2ECEE;
  --accent-line: #B8D0D6;
  --danger: #9F1D1D;
  --danger-soft: #FBE9E9;
  --green: #2F7A53;
  --green-soft: #DDEDDF;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(15, 27, 45, 0.04), 0 12px 32px -16px rgba(15, 27, 45, 0.18);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto,
          'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Accessibility ---------- */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2000;
  padding: 10px 14px;
  border: 2px solid var(--accent-deep);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font: 700 0.88rem/1 var(--sans);
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 0.15s ease;
}
.skip-link:focus { transform: translateY(0); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent-deep);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- Nav ---------- */
.nav {
  background: var(--ink);
  border-bottom: 1px solid #9aa0a6;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}
.brand-link,
.foot-brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand-logo {
  display: block;
  width: 124px;
  height: auto;
}
.nav-back {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}
.nav-back:hover { color: #fff; }

/* ---------- Layout ---------- */
.page { padding: 56px 0 72px; }
.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: start;
}

.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  padding: 4px 10px;
  border-radius: 999px;
}

.intro h1 {
  margin: 18px 0 0.5em;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.18;
}
.intro .sub {
  font-size: 1.05rem;
  color: var(--ink-2);
  margin: 0 0 20px;
}
.intro-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--rule);
  padding-top: 20px;
}
.intro-points li {
  position: relative;
  padding-left: 20px;
  color: var(--ink-3);
  font-size: 0.95rem;
}
.intro-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Form card ---------- */
.form-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 32px;
}

.form { display: grid; gap: 22px; }

.field { display: grid; gap: 6px; }

.field label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}
.req { color: var(--accent-deep); }
.opt { font-weight: 400; color: var(--ink-3); }

.hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-3);
}

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.45;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  min-height: 46px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
input[type="text"]:hover,
input[type="email"]:hover,
select:hover,
textarea:hover { border-color: var(--accent-line); }

textarea { resize: vertical; min-height: 140px; }

.field-invalid input,
.field-invalid select,
.field-invalid textarea {
  border-color: var(--danger);
  background: var(--danger-soft);
}

.field-message {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--danger);
}

/* ---------- Consent ---------- */
.consent-field {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  background: var(--surface-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 16px;
}
.consent-field input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin: 2px 0 0;
  accent-color: var(--accent-deep);
  flex: none;
}
.consent-field label { font-weight: 500; }
.consent-version {
  display: block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink-3);
}
.consent-field.field-invalid {
  border-color: var(--danger);
  background: var(--danger-soft);
}
.consent-field .field-message { grid-column: 1 / -1; }

/* ---------- Honeypot: off-canvas, never focusable, never announced ---------- */
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- Button ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  padding: 14px 22px;
  min-height: 48px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.btn-primary:hover { background: #1B2A40; }
.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.fine-print {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-3);
}

/* ---------- Status regions ---------- */
.form-status {
  background: var(--green-soft);
  border: 1px solid var(--green);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 24px;
}
.form-status-title {
  margin: 0 0 6px;
  font-size: 1.15rem;
  color: var(--ink);
}
.form-status-body { margin: 0; color: var(--ink-2); }

.form-error {
  background: var(--danger-soft);
  border: 1px solid var(--danger);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 24px;
  font-weight: 500;
  color: var(--danger);
}

/* ---------- Footer ---------- */
.foot {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  padding: 0 0 38px;
}
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding-top: 30px;
  font-size: 0.85rem;
}
.foot-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.foot-brand-logo {
  display: block;
  width: 142px;
  height: auto;
}
.foot-tagline {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.80);
}
.foot-copy {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.45);
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}
.foot-links a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}
.foot-links a:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .page-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .page { padding: 40px 0 56px; }
}

@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .form-card {
    padding: 20px 16px;
    border-radius: var(--radius);
  }
  .page { padding: 28px 0 40px; }
  .intro .sub { font-size: 1rem; }
  .form { gap: 18px; }
  .btn { width: 100%; }
  .nav-back { font-size: 0.85rem; }
  .foot-inner { flex-direction: column; padding-top: 30px; }
  .foot-links { justify-content: flex-start; }
}
