/* ============================================================
   socialslink.io — public marketing pages
   Tokens and reset live in tokens.css; load it first.
   ============================================================ */

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main { flex: 1; }

.shell {
  width: min(var(--shell), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

.mono {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* ----------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(8, 9, 11, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.site-header[data-stuck="true"] {
  border-bottom-color: var(--line);
  background: rgba(8, 9, 11, 0.88);
}

.nav {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: var(--r-xs);
  display: grid;
  place-items: center;
  background: var(--text);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-dim { color: var(--text-3); font-weight: 500; }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  font-size: 14px;
  color: var(--text-2);
}

.nav-links a { transition: color 0.15s ease; }
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: var(--s-3); }

/* ----------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  height: 40px;
  padding-inline: 18px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.6; cursor: default; }

.btn-primary { background: var(--btn-bg); color: var(--btn-fg); font-weight: 600; }
.btn-primary:hover { background: #d9dde3; }

.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: #3a4250; background: var(--surface-2); }

.btn-lg { height: 46px; padding-inline: 22px; font-size: 15px; }

/* ----------------------------------------------------------- page head */

.page-head {
  padding: clamp(56px, 8vw, 96px) 0 var(--s-8);
  display: grid;
  gap: var(--s-4);
  max-width: 58ch;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h2 {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.lede {
  margin: 0;
  color: var(--text-2);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.62;
  text-wrap: pretty;
}

/* ----------------------------------------------------------- forms */

.invite-form {
  width: min(440px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s-2);
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: var(--surface);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.invite-form:focus-within {
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 4px var(--accent-wash);
}

.invite-form input {
  min-width: 0;
  height: 40px;
  padding-inline: 12px;
  border: 0;
  background: transparent;
  font-size: 15px;
  outline: none;
}

.form-note {
  min-height: 20px;
  font-size: 13px;
  color: var(--text-3);
}
.form-note.ok { color: var(--accent); }
.form-note.error { color: var(--danger); }

.form-card {
  padding: var(--s-6);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  display: grid;
  gap: var(--s-4);
}

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

.field > span {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
}

.field > span small {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-3);
}

.form-card input,
.form-card textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--bg);
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-card textarea { min-height: 92px; resize: vertical; line-height: 1.55; }

.form-card input:focus,
.form-card textarea:focus {
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 3px var(--accent-wash);
}

input::placeholder, textarea::placeholder { color: #5c646f; }

.form-card .btn { width: 100%; margin-top: var(--s-1); }

/* ----------------------------------------------------------- footer */

.footer {
  border-top: 1px solid var(--line);
  padding: var(--s-7) 0;
  margin-top: var(--s-8);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  flex-wrap: wrap;
}

.footer-meta {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--text-3);
  max-width: 40ch;
}

.footer-links {
  display: flex;
  gap: var(--s-5);
  font-size: 13px;
  color: var(--text-3);
  flex-wrap: wrap;
}

.footer-links a { transition: color 0.15s ease; }
.footer-links a:hover { color: var(--text); }

/* ----------------------------------------------------------- responsive */

@media (max-width: 700px) {
  .nav-links { display: none; }
}

@media (max-width: 620px) {
  :root { --gutter: 18px; }
  .invite-form { grid-template-columns: 1fr; }
  .invite-form .btn { width: 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

