/* CrewLync public site — crewlync.com
   Tokens are copied from the CrewLync design system (Figma-derived). Keep this file
   dependency-free: the site must render without JavaScript and without a build step. */

:root {
  --gray-0: #ffffff;
  --gray-25: #fafafa;
  --gray-50: #f9fafb;
  --gray-100: #ededed;
  --gray-150: #e4e4e7;
  --gray-200: #cacaca;
  --gray-250: #c7c7d1;
  --gray-300: #9f9fa9;
  --gray-350: #71717b;
  --gray-400: #6a6a6d;
  --gray-500: #52525c;
  --gray-600: #3f3f47;
  --gray-700: #27272a;
  --gray-800: #18181b;
  --gray-850: #111114;
  --gray-900: #09090b;
  --gray-950: #040404;

  --lime: #ccff00;
  --lime-hover: #bae900;
  --lime-press: #a8d100;
  --lime-glow-15: rgba(204, 255, 0, 0.15);
  --lime-glow-08: rgba(204, 255, 0, 0.08);
  --red-light: #ff6467;

  --border-default: var(--gray-150);
  --text-primary: var(--gray-800);

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius-lg: 8px;
  --radius-2xl: 14px;
  --radius-full: 9999px;

  --shadow-card: 0 1px 2px 0 rgba(24, 24, 27, 0.04);
  --shadow-accent-sm: 0 0 10px 0 var(--lime-glow-15);
  --shadow-accent-lg: 0 0 20px 0 var(--lime-glow-15);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --container: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--gray-0);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.theme-dark { background: var(--gray-900); color: var(--gray-0); }
img { max-width: 100%; }
::selection { background: var(--lime); color: var(--gray-900); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--lime-press);
  outline-offset: 3px;
  border-radius: 4px;
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

.container { max-width: var(--container); margin: 0 auto; }

/* ---------- Shared chrome ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 30px; padding: 0 13px;
  border-radius: var(--radius-full);
  border: 1px solid var(--gray-700);
  background: rgba(255, 255, 255, 0.02);
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--gray-300);
  white-space: nowrap;
}
.chip-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px var(--lime);
}
.theme-light .chip { border-color: var(--border-default); background: var(--gray-0); color: var(--gray-500); }
.theme-light .chip-dot { box-shadow: var(--shadow-accent-sm); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--radius-lg);
  font-family: var(--font-sans); font-weight: 700; letter-spacing: -0.3px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: filter 120ms var(--ease), transform 120ms var(--ease);
}
.btn-primary {
  background: var(--lime); color: var(--gray-900);
  border: 1px solid var(--lime-hover);
  box-shadow: var(--shadow-accent-lg);
}
.btn-primary:not(:disabled):hover { filter: brightness(0.96); color: var(--gray-900); }
.btn-primary:not(:disabled):active { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-lg { height: 48px; padding: 0 24px; font-size: 16px; }
.btn-xl { height: 52px; padding: 0 24px; font-size: 16px; flex: 0 0 auto; }

.site-footer {
  background: var(--gray-950);
  padding: 26px var(--gutter);
  border-top: 1px solid var(--gray-800);
  color: var(--gray-400);
}
.site-footer .container {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.footer-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: 12px; }
.footer-brand img { height: 22px; width: auto; display: block; }
.footer-brand a { color: var(--gray-300); text-decoration: none; }
.footer-brand a:hover { color: var(--gray-0); }
.footer-links { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.footer-links a { font-size: 13px; font-weight: 500; color: var(--gray-300); text-decoration: none; }
.footer-links a:hover { color: var(--gray-0); }
.footer-links a[aria-current="page"] { font-weight: 600; color: var(--gray-0); }
.footer-login {
  display: inline-flex; align-items: center; height: 32px; padding: 0 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--gray-700);
  color: var(--gray-100) !important; font-size: 12px !important; font-weight: 700 !important; letter-spacing: -0.1px;
  transition: background 140ms var(--ease), border-color 140ms var(--ease), color 140ms var(--ease);
}
.footer-links a.footer-login:hover { background: var(--lime); border-color: var(--lime); color: var(--gray-900) !important; }

/* ---------- Landing page ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column;
  background: var(--gray-900); overflow: hidden;
}
.hero-glow {
  position: absolute; top: -22%; left: 50%; transform: translateX(-50%);
  width: min(1500px, 150vw); height: 900px;
  background: radial-gradient(50% 50% at 50% 50%, var(--lime-glow-08), transparent 72%);
  pointer-events: none;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--gray-850) 1px, transparent 1px),
                    linear-gradient(90deg, var(--gray-850) 1px, transparent 1px);
  background-size: 88px 88px; opacity: 0.45;
  -webkit-mask-image: radial-gradient(70% 55% at 50% 30%, #000, transparent 78%);
          mask-image: radial-gradient(70% 55% at 50% 30%, #000, transparent 78%);
  pointer-events: none;
}
.hero-header { position: relative; z-index: 2; width: 100%; }
.hero-nav {
  padding: 26px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.hero-nav img { height: 26px; width: auto; display: block; }

.hero-body {
  position: relative; z-index: 2; flex: 1;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(36px, 6vw, 80px) var(--gutter) clamp(56px, 7vw, 96px);
}
.hero-content {
  max-width: 900px; width: 100%;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px;
}
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--lime); }
.hero h1 {
  margin: 0;
  font-size: clamp(40px, 7vw, 86px); line-height: 1; font-weight: 700; letter-spacing: -0.04em;
  color: var(--gray-0); text-wrap: balance;
}
.hero-lede {
  margin: 0; max-width: 660px;
  font-size: clamp(16px, 1.4vw, 19px); line-height: 1.6; color: var(--gray-300); text-wrap: pretty;
}

.signup { width: 100%; max-width: 560px; margin: 10px 0 0; display: flex; flex-direction: column; gap: 12px; }
.signup-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.signup-input {
  flex: 1 1 240px; min-width: 0; height: 52px; padding: 0 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--gray-700);
  color: var(--gray-0); font-family: var(--font-sans); font-size: 16px; letter-spacing: -0.2px;
  outline: none;
  transition: border-color 140ms var(--ease), background 140ms var(--ease);
}
.signup-input::placeholder { color: var(--gray-350); }
.signup-input:focus { background: rgba(255, 255, 255, 0.07); }
.signup.is-invalid .signup-input { border-color: var(--red-light); }
.signup-error {
  margin: 0; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font-size: 13px; font-weight: 600; letter-spacing: -0.1px; color: var(--red-light);
}
.signup-error svg { flex-shrink: 0; }
.signup-note { margin: 0; font-size: 13px; line-height: 20px; color: var(--gray-350); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.signup-done {
  width: 100%; max-width: 560px; margin: 10px 0 0;
  display: flex; flex-direction: column; align-items: center; gap: 11px;
  padding: 26px 24px;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--gray-700);
  background: rgba(204, 255, 0, 0.05);
}
.signup-done-mark {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--lime);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-accent-lg);
}
.signup-done h2 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.025em; color: var(--gray-0); }
.signup-done p { margin: 0; font-size: 14px; line-height: 22px; color: var(--gray-300); max-width: 380px; }
.link-btn {
  cursor: pointer; background: none; border: none; padding: 0; margin-top: 2px;
  font-family: var(--font-sans); font-size: 13px; font-weight: 700; color: var(--gray-350);
  text-decoration: underline; text-underline-offset: 3px;
}
.link-btn:hover { color: var(--gray-0); }
[hidden] { display: none !important; }

.audience { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: clamp(20px, 4vw, 44px); }
.audience-label { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray-400); }
.audience-list { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.audience-list li {
  display: inline-flex; align-items: center; height: 32px; padding: 0 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--gray-700);
  background: rgba(255, 255, 255, 0.02);
  font-size: 13px; font-weight: 500; letter-spacing: -0.1px; color: var(--gray-250);
}

.intro { background: var(--gray-25); padding: clamp(64px, 8vw, 112px) var(--gutter); color: var(--text-primary); }
.intro .container { display: flex; flex-direction: column; gap: clamp(48px, 6vw, 80px); }
.intro-head {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(28px, 4vw, 64px); align-items: start;
}
.intro-head h2 {
  margin: 0; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.08; font-weight: 700; letter-spacing: -0.032em;
  color: var(--gray-900); text-wrap: balance;
}
.intro-head p { margin: 0; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.68; color: var(--gray-500); text-wrap: pretty; }
.intro-head p + p { margin-top: 16px; }
.intro-head a { color: var(--gray-900); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gray-250); }
.intro-head a:hover { text-decoration-color: var(--lime-press); }

.values { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.values li {
  display: flex; flex-direction: column; gap: 12px; padding: 26px;
  border-radius: var(--radius-2xl);
  background: var(--gray-0);
  border: 1px solid var(--border-default);
  box-shadow: var(--shadow-card);
}
.value-icon {
  width: 34px; height: 34px; border-radius: var(--radius-lg);
  background: var(--lime);
  display: flex; align-items: center; justify-content: center;
}
.values h3 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -0.28px; color: var(--gray-900); }
.values p { margin: 0; font-size: 14px; line-height: 22px; color: var(--gray-500); text-wrap: pretty; }

.cta-band {
  position: relative; overflow: hidden;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius-2xl);
  background: var(--gray-900);
  border: 1px solid var(--gray-700);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 120% at 85% 50%, var(--lime-glow-08), transparent 70%);
  pointer-events: none;
}
.cta-text { position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; max-width: 520px; }
.cta-text strong {
  font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; color: var(--gray-0);
}
.cta-text span { font-size: 14px; line-height: 22px; color: var(--gray-300); }
.cta-band .btn { position: relative; }

/* ---------- Motion (landing) ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes breathe { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
@keyframes chipGlow {
  0% { background-color: rgba(255, 255, 255, 0.02); border-color: #3f3f46; color: #d4d4d8; }
  8%, 13% { background-color: #ccff00; border-color: #ccff00; color: #18181b; }
  21%, 100% { background-color: rgba(255, 255, 255, 0.02); border-color: #3f3f46; color: #d4d4d8; }
}
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 800ms var(--ease) both; }
  .rise-2 { animation-delay: 90ms; }
  .rise-3 { animation-delay: 180ms; }
  .rise-4 { animation-delay: 270ms; }
  .hero .chip-dot { animation: breathe 2600ms ease-in-out infinite; }
  .audience-list li { animation: chipGlow 9000ms ease-in-out infinite both; }
  .audience-list li:nth-child(2) { animation-delay: 1800ms; }
  .audience-list li:nth-child(3) { animation-delay: 3600ms; }
  .audience-list li:nth-child(4) { animation-delay: 5400ms; }
  .audience-list li:nth-child(5) { animation-delay: 7200ms; }
}

/* ---------- Legal pages ---------- */
/* Body-copy links on the legal pages. Scoped to the article so the TOC, header, and
   footer keep their own link styling (the footer sits on a dark ground). */
.legal-article a { color: var(--gray-900); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: var(--gray-250); }
.legal-article a:hover { color: var(--gray-950); text-decoration-color: var(--lime-press); }
.theme-light .site-footer { border-top: 0; }

.legal-header {
  position: sticky; top: 0; z-index: 60; width: 100%;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
          backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border-default);
}
.legal-nav {
  padding: 0 var(--gutter); height: 68px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.legal-nav a { display: flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.legal-nav img { height: 26px; width: auto; display: block; }

.legal-title { background: var(--gray-25); border-bottom: 1px solid var(--border-default); padding: clamp(36px, 5vw, 64px) var(--gutter) clamp(28px, 4vw, 44px); }
.legal-title .container { display: flex; flex-direction: column; gap: 16px; }
.legal-title .chip { align-self: flex-start; height: 28px; padding: 0 12px; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; }
.legal-title h1 { margin: 0; font-size: clamp(32px, 4.4vw, 52px); line-height: 1.06; font-weight: 700; letter-spacing: -0.035em; color: var(--gray-900); }
.legal-meta { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: -0.15px; color: var(--gray-350); }

.legal-main { padding: clamp(36px, 5vw, 72px) var(--gutter) clamp(56px, 7vw, 96px); }
.legal-main .container { display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 72px); align-items: flex-start; }

.toc {
  flex: 1 1 220px; max-width: 260px; min-width: 200px;
  position: sticky; top: 92px;
  display: flex; flex-direction: column; gap: 12px;
}
.toc-label { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray-350); }
.toc ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; }
.toc a {
  display: flex; align-items: center; gap: 10px; padding: 7px 0;
  font-size: 13px; line-height: 18px; font-weight: 500; letter-spacing: -0.1px;
  color: var(--gray-500); text-decoration: none;
  transition: color 140ms var(--ease);
}
.toc a::before { content: ""; width: 2px; align-self: stretch; flex-shrink: 0; border-radius: 2px; background: transparent; transition: background 140ms var(--ease); }
.toc a:hover { color: var(--gray-900); }
.toc a[aria-current="true"] { color: var(--gray-900); font-weight: 700; }
.toc a[aria-current="true"]::before { background: var(--lime); }

.legal-article { flex: 1 1 620px; min-width: 0; max-width: 740px; display: flex; flex-direction: column; gap: clamp(32px, 4vw, 44px); }
.legal-article section { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 104px; }
.legal-article h2 { margin: 0; font-size: clamp(20px, 2vw, 24px); line-height: 1.22; font-weight: 700; letter-spacing: -0.024em; color: var(--gray-900); }
.legal-article p, .legal-article li { margin: 0; font-size: 16px; line-height: 28px; color: var(--gray-500); text-wrap: pretty; }
.legal-article ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.legal-article strong { color: var(--gray-700); }
.legal-end { display: flex; flex-direction: column; gap: 14px; padding-top: clamp(24px, 3vw, 36px); border-top: 1px solid var(--border-default); }
.legal-end-links { margin: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 15px; line-height: 24px; color: var(--gray-500); }
.legal-end-links .sep { color: var(--gray-250); }

/* ---------- Thanks page ---------- */
.thanks {
  min-height: 100vh; display: flex; flex-direction: column; background: var(--gray-900);
}
.thanks-body { flex: 1; display: flex; align-items: center; justify-content: center; padding: clamp(36px, 6vw, 80px) var(--gutter); position: relative; z-index: 2; }
.thanks .signup-done { margin: 0; }
.thanks .signup-done a { color: var(--gray-350); font-size: 13px; font-weight: 700; text-underline-offset: 3px; }
.thanks .signup-done a:hover { color: var(--gray-0); }

@media (max-width: 720px) {
  .toc { position: static; max-width: none; }
  .footer-links { margin-left: 0; }
}
