:root {
  --navy: #0d1b2e;
  --navy-deep: #08121f;
  --gold: #b8973e;
  --gold-light: #d4b15a;
  --cream: #f8f6f1;
  --cream-warm: #fbf9f4;
  --slate: #5a6878;
  --slate-light: rgba(90, 104, 120, 0.6);
  --border: rgba(13, 27, 46, 0.08);
  --border-strong: rgba(13, 27, 46, 0.18);
  --shadow-soft: 0 4px 24px rgba(13, 27, 46, 0.06);
  --shadow-strong: 0 16px 48px rgba(13, 27, 46, 0.12);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--navy);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image:
    radial-gradient(circle at 15% 8%, rgba(184, 151, 62, 0.04) 0%, transparent 35%),
    radial-gradient(circle at 85% 88%, rgba(13, 27, 46, 0.025) 0%, transparent 40%);
  background-attachment: fixed;
}

a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 2px; transition: color 0.15s; }
a:hover { color: var(--gold); }

/* ============ HEADER ============ */
.site-header {
  background: var(--navy);
  color: var(--cream);
  border-bottom: 2px solid var(--gold);
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 22px 32px;
}

.brand-link {
  display: inline-block;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--cream);
}

.brand-sub {
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-top: 2px;
  font-weight: 500;
}

/* ============ PAGE LAYOUT ============ */
.page {
  flex: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 64px 32px 80px;
  width: 100%;
}

.step-pane { animation: fadeIn 0.4s ease; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ LEDE BLOCK ============ */
.lede-block {
  margin-bottom: 40px;
}

.lede-block.success { text-align: center; padding: 16px 0 8px; }

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 14px;
}

.lede-block h1 {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin-bottom: 20px;
}

.lede-block.success h1 {
  font-size: 38px;
  margin-bottom: 14px;
}

.lede {
  font-size: 17px;
  color: var(--navy);
  line-height: 1.65;
  max-width: 640px;
  margin: 0 auto 12px;
}

.lede-block:not(.success) .lede { margin: 0 0 12px; }

.lede-sub {
  font-size: 15px;
  color: var(--slate);
  max-width: 640px;
  margin: 0 auto;
}

.lede-block:not(.success) .lede-sub { margin: 0; }

.success-mark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(46, 160, 67, 0.12);
  color: #2a6e3f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.success-mark svg { width: 28px; height: 28px; }

/* ============ NDA CARD ============ */
.nda-card {
  background: white;
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: 4px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  margin-bottom: 24px;
}

.nda-card-header {
  padding: 24px 32px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  background: linear-gradient(to bottom, var(--cream-warm), white);
}

.nda-card-header h2 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--navy);
}

.version-tag {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 500;
  white-space: nowrap;
}

.nda-scroll {
  padding: 28px 32px;
  max-height: 360px;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.7;
  background: rgba(248, 246, 241, 0.4);
  border-bottom: 1px solid var(--border);
  scrollbar-width: thin;
  scrollbar-color: var(--slate-light) transparent;
}

.nda-scroll::-webkit-scrollbar { width: 6px; }
.nda-scroll::-webkit-scrollbar-track { background: transparent; }
.nda-scroll::-webkit-scrollbar-thumb { background: var(--slate-light); border-radius: 3px; }

.nda-intro {
  margin-bottom: 16px;
  color: var(--navy);
}

.nda-scroll h3 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-top: 18px;
  margin-bottom: 6px;
  color: var(--navy);
}

.nda-scroll p {
  margin-bottom: 10px;
  color: #2a3540;
}

/* ============ SIGN FORM ============ */
.sign-form {
  padding: 28px 32px 32px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 20px;
}

.field.full { grid-column: 1 / -1; }

.field label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 8px;
}

.field .optional {
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--slate-light);
  font-weight: 400;
}

.field input {
  width: 100%;
  font-family: var(--sans);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 3px;
  background: white;
  color: var(--navy);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 151, 62, 0.15);
}

.agree-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--navy);
  padding: 16px;
  background: var(--cream-warm);
  border: 1px solid var(--border);
  border-radius: 3px;
  cursor: pointer;
  margin-bottom: 24px;
}

.agree-row input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
  cursor: pointer;
}

.primary-btn {
  width: 100%;
  background: var(--navy);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 16px 28px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.15s, transform 0.05s;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.primary-btn:hover:not(:disabled) { background: var(--navy-deep); }
.primary-btn:active:not(:disabled) { transform: translateY(1px); }
.primary-btn:disabled { background: var(--slate); cursor: not-allowed; opacity: 0.7; }

.btn-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(248, 246, 241, 0.3);
  border-top-color: var(--cream);
  border-radius: 50%;
  display: none;
  animation: spin 0.8s linear infinite;
}

.primary-btn.loading .btn-spinner { display: inline-block; }
.primary-btn.loading .btn-label { opacity: 0.6; }

@keyframes spin { to { transform: rotate(360deg); } }

.form-error {
  margin-top: 16px;
  padding: 12px 14px;
  background: rgba(192, 57, 43, 0.08);
  border-left: 3px solid #c0392b;
  color: #a0301f;
  font-size: 14px;
  border-radius: 2px;
}

.footnote {
  text-align: center;
  font-size: 13px;
  color: var(--slate);
  margin-top: 16px;
}

/* ============ DOCS LIST ============ */
.docs-list {
  display: grid;
  gap: 16px;
  margin: 32px 0;
}

.doc-row {
  background: white;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  transition: all 0.15s;
  text-decoration: none;
  color: inherit;
}

.doc-row:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.doc-icon-wrap {
  width: 52px;
  height: 52px;
  background: var(--navy);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.doc-icon-wrap svg {
  width: 26px;
  height: 26px;
  color: var(--gold);
}

.doc-info { flex: 1; min-width: 0; }

.doc-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
  line-height: 1.3;
}

.doc-desc {
  font-size: 13px;
  color: var(--slate);
  margin-bottom: 8px;
  line-height: 1.5;
}

.doc-meta {
  font-size: 11px;
  color: var(--slate-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.doc-cta {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  border: 1px solid var(--navy);
  padding: 9px 16px;
  border-radius: 3px;
  white-space: nowrap;
  transition: all 0.15s;
  flex-shrink: 0;
}

.doc-row:hover .doc-cta { background: var(--navy); color: var(--cream); }

/* ============ AFTERCARE ============ */
.aftercare {
  background: white;
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  padding: 24px 28px;
  border-radius: 4px;
  margin-top: 32px;
}

.aftercare h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.aftercare p {
  font-size: 14px;
  color: var(--navy);
  line-height: 1.6;
}

/* ============ FOOTER ============ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 32px;
  margin-top: auto;
  background: rgba(13, 27, 46, 0.02);
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  font-size: 12px;
  color: var(--slate);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.dot-sep { color: var(--slate-light); }

/* ============ RESPONSIVE ============ */
@media (max-width: 720px) {
  .page { padding: 40px 20px 60px; }
  .lede-block h1 { font-size: 34px; }
  .lede-block.success h1 { font-size: 28px; }
  .lede { font-size: 16px; }
  .nda-card-header,
  .nda-scroll,
  .sign-form { padding-left: 22px; padding-right: 22px; }
  .form-grid { grid-template-columns: 1fr; gap: 14px; }
  .doc-row { flex-direction: column; align-items: flex-start; gap: 16px; padding: 20px; }
  .doc-cta { align-self: stretch; text-align: center; }
  .nda-scroll { max-height: 280px; }
}

/* ============ GATE CARD (email entry) ============ */
.gate-card {
  background: white;
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: 4px;
  box-shadow: var(--shadow-soft);
  padding: 32px;
  margin-bottom: 20px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.gate-card .field { margin-bottom: 18px; }

/* ============ MAIL MARK (alt success icon) ============ */
.mail-mark {
  background: rgba(184, 151, 62, 0.12);
  color: var(--gold);
}

/* ============ STRONG EMAIL INLINE ============ */
.strong-email {
  font-weight: 600;
  color: var(--navy);
}

/* ============ ERROR EYEBROW ============ */
.eyebrow-warning {
  color: #c0392b;
}

/* ============ PRIMARY BUTTON AS LINK ============ */
.primary-btn-link {
  display: inline-block;
  background: var(--navy);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 16px 32px;
  border-radius: 3px;
  text-decoration: none;
  margin-top: 24px;
  transition: background 0.15s;
}
.primary-btn-link:hover {
  background: var(--navy-deep);
  color: var(--cream);
}
