/* Map to Hired website — one shared stylesheet. Colors come from the tokens below. */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/PlusJakartaSans-var-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #111b30;
  --bg-glass: rgba(17, 27, 48, 0.92);
  --surface: #1a2744;
  --surface-side: #15213b;
  --border: #26365a;
  --border-strong: #2e3f66;
  --rule: #1e2c4c;
  --badge-border: #3a3f52;
  --text: #f4f1ea;
  --text-nav: #c5ccda;
  --text-muted: #a7b0c4;
  --text-subtle: #8c96ad;
  --accent: #f2762e;
  --accent-soft: #f7a06e;
  --ivory: #faf8f4;
  --shadow: rgba(0, 0, 0, 0.6);

  --page-width: 1160px;
  --gutter: 24px;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-wrap: break-word;
}

a {
  color: var(--text);
}

a:hover {
  color: var(--accent-soft);
}

:focus-visible {
  outline: 3px solid var(--accent-soft);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

main {
  flex: 1 0 auto;
}

/* ---------- Top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--bg-glass);
  border-bottom: 1px solid var(--rule);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  color: var(--text);
}

.brand svg {
  flex: none;
  display: block;
}

.brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 15px;
  font-weight: 500;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-nav);
  text-decoration: none;
  white-space: nowrap;
}

.nav-link[aria-current="page"] {
  color: var(--text);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 12px;
  background: var(--accent);
  color: var(--bg);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.button:hover {
  color: var(--bg);
  background: var(--accent-soft);
}

.nav .button {
  min-height: 44px;
  padding: 0 18px;
}

/* ---------- Hero (home, thanks) ---------- */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 88px 0 56px;
  text-align: center;
}

.badge {
  padding: 8px 14px;
  border: 1px solid var(--badge-border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent-soft);
  font-size: 14px;
  font-weight: 600;
}

.hero-title {
  margin: 0;
  max-width: 840px;
  font-size: clamp(40px, 6vw, 66px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.accent {
  color: var(--accent);
}

.hero-text {
  margin: 0;
  max-width: 620px;
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-muted);
}

.hero-note {
  font-size: 14px;
  color: var(--text-subtle);
}

/* ---------- Beta form ---------- */

.beta-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 520px;
}

.beta-form input[type="email"] {
  scroll-margin-top: 160px;
  flex: 1 1 240px;
  min-width: 0;
  height: 54px;
  padding: 0 18px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 16px;
}

.beta-form input[type="email"]::placeholder {
  color: var(--text-subtle);
  opacity: 1;
}

.beta-form .button {
  height: 54px;
  padding: 0 24px;
  font-size: 16px;
}

/* The orange "Join the beta" card */

.join {
  padding-bottom: 104px;
}

.join-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 48px 32px;
  border-radius: 24px;
  background: var(--accent);
  color: var(--bg);
  text-align: center;
}

.join-title {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.join-text {
  margin: 0;
  max-width: 520px;
  font-size: 18px;
  line-height: 1.55;
  font-weight: 500;
}

.join-card .beta-form input[type="email"] {
  height: 56px;
  border: none;
  background: var(--ivory);
  color: var(--bg);
}

.join-card .beta-form input[type="email"]::placeholder {
  color: var(--surface);
  opacity: 0.7;
}

.join-card .button {
  height: 56px;
  padding: 0 26px;
  background: var(--bg);
  color: var(--text);
}

.join-card .button:hover {
  background: var(--surface);
  color: var(--text);
}

.join-card :focus-visible {
  outline-color: var(--bg);
}

.join-note {
  font-size: 14px;
  font-weight: 500;
}

.join-note a {
  color: var(--bg);
}

/* ---------- App preview (how it works) ---------- */

.preview {
  padding: 56px 0 104px;
}

.app-window {
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 40px 80px -40px var(--shadow);
}

.app-side {
  flex: 1 1 180px;
  max-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 22px 14px;
  list-style: none;
  background: var(--surface-side);
  font-size: 14px;
}

.app-side li {
  padding: 9px 12px;
  color: var(--text-muted);
}

.app-side .is-current {
  border-radius: 10px;
  background: var(--border);
  color: var(--text);
  font-weight: 600;
}

.app-main {
  flex: 999 1 480px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
}

.app-greeting {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.app-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.app-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg);
}

.app-label {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
}

.app-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.app-job {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.app-company {
  font-weight: 700;
}

.app-small {
  font-size: 13px;
  color: var(--text-muted);
}

.app-chip {
  flex: none;
  padding: 7px 12px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--bg);
  font-size: 12px;
  font-weight: 700;
}

.app-count {
  font-size: 34px;
  line-height: 1.2;
  font-weight: 800;
}

.app-count-of {
  font-size: 18px;
  color: var(--text-subtle);
}

.app-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--border);
}

.app-bar-fill {
  width: 60%;
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
}

/* ---------- Text pages (FAQ, privacy) ---------- */

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 0 104px;
}

.page-title {
  margin: 0 0 24px;
  color: var(--text);
  font-size: clamp(32px, 4.4vw, 46px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.page-title.is-centered {
  text-align: center;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.faq-item summary {
  padding: 20px 22px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}

.faq-item p {
  margin: 0;
  padding: 0 22px 20px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
}

.prose {
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.65;
}

.prose h2 {
  margin: 36px 0 8px;
  color: var(--text);
  font-size: 22px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.prose p,
.prose ul {
  margin: 0 0 12px;
}

.prose ul {
  padding-left: 22px;
}

.prose strong {
  color: var(--text);
}

.updated {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--text-subtle);
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--rule);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding-top: 20px;
  padding-bottom: 20px;
  font-size: 14px;
  color: var(--text-subtle);
}

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

.hero-title,
.hero-text,
.join-title,
.join-text,
.page-title {
  text-wrap: balance;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-muted);
  text-decoration: none;
}

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

/* ---------- Small screens ---------- */

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }

  .hero {
    padding: 56px 0 48px;
    gap: 20px;
  }

  .hero-text {
    font-size: 17px;
  }

  .beta-form .button {
    flex: 1 1 100%;
  }

  .join-card {
    padding: 36px 20px;
  }

  .preview {
    padding: 32px 0 64px;
  }

  .join {
    padding-bottom: 64px;
  }

  .app-side {
    flex-basis: 100%;
    max-width: none;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
    padding: 12px;
  }

  .app-side li {
    padding: 7px 10px;
  }

  .app-main {
    padding: 20px;
  }

  .page {
    padding: 48px 0 64px;
  }

  .footer-links {
    gap: 0 20px;
  }

  .footer-links a[href^="mailto:"] {
    order: 1;
  }
}

@media (max-width: 480px) {
  .brand-name {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .nav {
    gap: 16px;
    font-size: 14px;
  }

  .nav .button {
    padding: 0 14px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
