/* Shared layout for standalone Waitlist, Open Source, and Legal pages. */
@import url('/style.css');

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #030403;
  color: #e5e9df;
}

.sub-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px var(--gutter);
  border-bottom: 1px solid var(--line);
  background: #030403;
}

.sub-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.sub-nav a {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #b7c2ae;
  padding: 8px 0;
}

.sub-nav a:hover,
.sub-nav a[aria-current="page"] {
  color: var(--accent);
}

.sub-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #43553c;
  color: #d6e2cd;
  font: 400 13px/1 Geist, sans-serif;
  white-space: nowrap;
}

.sub-header-cta:hover {
  border-color: var(--accent);
  background: #112017;
  color: var(--accent);
}

.sub-main {
  flex: 1;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(36px, 6vw, 72px) var(--gutter) 72px;
}

.sub-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 20px;
}

.sub-back:hover {
  color: var(--ink);
}

.sub-kicker {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #93a388;
  margin-bottom: 12px;
}

.sub-main h1 {
  font-family: Geist, sans-serif;
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.045em;
  color: #edf1e7;
  margin-bottom: 16px;
}

.sub-lead {
  font-size: 17px;
  line-height: 1.65;
  color: #b7c0b0;
  margin-bottom: 28px;
}

.sub-card {
  border: 1px solid #2b3428;
  background: #080b08;
  padding: clamp(20px, 4vw, 32px);
  margin-bottom: 28px;
}

.sub-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sub-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sub-field label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #d6ded0;
}

.sub-field input[type="email"],
.sub-field input[type="url"],
.sub-field input[type="file"] {
  width: 100%;
  border: 1px solid #394435;
  background: #10140f;
  color: #edf1e7;
  padding: 12px 14px;
  font: 400 16px/1.4 Geist, sans-serif;
}

.sub-field input[type="file"] {
  font-size: 14px;
  cursor: pointer;
}

.sub-hint {
  font-size: 13px;
  line-height: 1.55;
  color: #95a08d;
}

.sub-warning {
  border-left: 2px solid #c99a5a;
  background: #14120c;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.55;
  color: #ead3b0;
}

.sub-form .button[type="submit"] {
  align-self: flex-start;
  min-width: 240px;
}

.form-status {
  padding: 12px 14px;
  border: 1px solid #2f3a2c;
  font: 400 14px/1.6 Geist, sans-serif;
  margin: 0;
}

.form-status[data-state="success"] {
  border-color: var(--accent);
  background: #0f1d12;
  color: #d8ebd9;
}

.form-status[data-state="error"] {
  border-color: #a44738;
  background: #1d110e;
  color: #f0c4bc;
}

.form-status[data-state="pending"] {
  color: #b7c0b0;
}

.sub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  padding-top: 18px;
  border-top: 1px solid #222a20;
  margin-top: 18px;
}

.sub-links a {
  font-size: 14px;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.sub-links a:hover {
  color: var(--ink);
}

/* Legal document prose */
.legal-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: #909d87;
  margin-bottom: 24px;
}

.legal-callout {
  border: 1px solid #493f28;
  border-left: 3px solid #d4a65e;
  background: #13110b;
  padding: 16px 18px;
  margin: 18px 0 24px;
  font-size: 15px;
  line-height: 1.68;
  color: #eadbc0;
}

.legal-callout strong {
  color: #f6e8ce;
}

.legal-callout-neutral {
  border-color: #2c3a2b;
  border-left-color: var(--accent);
  background: #0b120c;
  color: #d3ded0;
}

.legal-callout-neutral strong {
  color: #edf1e7;
}

.legal-body h2 {
  font-family: Geist, sans-serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #edf1e7;
  margin: 36px 0 12px;
  padding-top: 18px;
  border-top: 1px solid #1d241b;
}

.legal-body h3 {
  font-family: Geist, sans-serif;
  font-size: 17px;
  font-weight: 500;
  color: #dce4d6;
  margin: 22px 0 8px;
}

.legal-body p,
.legal-body li {
  font-size: 15px;
  line-height: 1.72;
  color: #c2cabd;
}

.legal-body p {
  margin: 0 0 14px;
}

.legal-body ul,
.legal-body ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.legal-body li {
  margin-bottom: 8px;
}

.legal-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-body code {
  font-family: var(--mono);
  font-size: 13px;
  background: #111610;
  padding: 2px 6px;
  border: 1px solid #262f24;
  color: #dce5d5;
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 18px 0 22px;
  border: 1px solid #262f24;
}

.legal-body table {
  width: 100%;
  border-collapse: collapse;
  min-width: 540px;
}

.legal-body th,
.legal-body td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid #1e251c;
  font-size: 14px;
  line-height: 1.55;
  vertical-align: top;
}

.legal-body th {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #9ba892;
  background: #0a0e09;
}

.legal-body td {
  color: #ccd3c7;
}

.sub-footer {
  border-top: 1px solid var(--line);
  padding: 24px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  font-size: 13px;
  color: #889480;
}

.sub-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.sub-footer-links a:hover {
  color: var(--accent);
}
