/* Night Shift preseed site — shared styles. Brand tokens lifted from the C-5M deck. */

:root {
  --bg:        #0a0420;
  --bg-2:      #160a32;
  --bg-3:      #1f0f44;
  --card:      #1a0f2e;
  --card-2:    #231540;
  --card-3:    #2d1a52;
  --line:      #2a1c4a;
  --line-2:    #3a2862;
  --ink:       #f0eaff;
  --ink-dim:   #b8a9d9;
  --ink-mute:  #8e80ad;
  --ink-faint: #6b5e89;

  --pink:      #ff4fa3;
  --purple:    #b36bff;
  --gold:      #fbbf24;
  --green:     #6bffb0;

  --grad:      linear-gradient(135deg, #fbbf24 0%, #ff4fa3 50%, #b36bff 100%);
  --bg-grad:   radial-gradient(circle at 20% -5%, #2a0f3e 0%, #0a0420 55%, #000 100%);

  --serif:     "Spectral", Georgia, "Times New Roman", serif;
  --sans:      "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  background: var(--bg-grad);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px 80px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
}
.brand-glyph {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-weight: 900;
  font-size: 16px;
  color: var(--bg);
  letter-spacing: -1px;
  box-shadow: 0 8px 24px rgba(255,79,163,0.25);
}
.brand-name {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
}

h1.hero {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  max-width: 18ch;
}
h1.hero em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 19px;
  line-height: 1.45;
  color: var(--ink-dim);
  margin-bottom: 32px;
  max-width: 56ch;
}

.section {
  margin-top: 40px;
}
.section h3 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.section p {
  color: var(--ink-dim);
  font-size: 16px;
  line-height: 1.65;
  max-width: 64ch;
  margin-bottom: 12px;
}
.section p strong { color: var(--ink); font-weight: 700; }
.section p em { font-style: italic; color: var(--gold); }

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.cta {
  display: inline-block;
  padding: 14px 28px;
  background: var(--grad);
  color: var(--bg);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: -0.01em;
  box-shadow: 0 12px 32px rgba(255,79,163,0.25);
}
.cta:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 16px 40px rgba(255,79,163,0.35); }

.cta-secondary {
  display: inline-block;
  padding: 14px 28px;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  cursor: pointer;
  text-decoration: none;
}
.cta-secondary:hover { background: var(--bg-2); text-decoration: none; }

.footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
}

/* Form */
.form-card {
  background: linear-gradient(180deg, var(--card) 0%, var(--card-2) 100%);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 32px;
  margin-top: 24px;
}
.form-row {
  margin-bottom: 16px;
}
.form-row label {
  display: block;
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 6px;
}
.form-row label .optional { color: var(--ink-mute); font-weight: 500; text-transform: none; letter-spacing: 0; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(251,191,36,0.18);
}
.form-row textarea { min-height: 80px; resize: vertical; }
.form-help {
  font-size: 12px;
  color: var(--ink-mute);
  margin-top: 8px;
  line-height: 1.5;
}

/* Portal */
.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.portal-card {
  background: linear-gradient(180deg, var(--card) 0%, var(--card-2) 100%);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s, transform 0.15s;
  display: block;
}
.portal-card:hover { border-color: var(--gold); transform: translateY(-2px); text-decoration: none; }
.portal-card .card-eyebrow {
  font-size: 10px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 8px;
}
.portal-card h4 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  margin-bottom: 6px;
}
.portal-card p {
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.5;
}

.terms-strip {
  background: rgba(251,191,36,0.05);
  border: 1px solid rgba(251,191,36,0.22);
  border-radius: 6px;
  padding: 12px 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 24px 0;
}
.terms-strip .col { display: flex; flex-direction: column; gap: 2px; }
.terms-strip .col strong {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 18px;
  color: var(--gold);
}
.terms-strip .col span {
  font-size: 9.5px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 700;
}

@media (max-width: 640px) {
  h1.hero { font-size: 32px; }
  .terms-strip { grid-template-columns: 1fr 1fr; }
  .container { padding: 40px 20px 60px; }
}
